Skip to content

stream: bitfield

Tries to significantly reduce readable state size for lower memory overhead and possibly better performance.

I'm making the assumption here that V8 is able to inline getters and setters.

TODO:

  • put flowing into bitfield
  • ensure all properties are accessed inline - [ ] use local bitfield instance to avoid property access through state.
  • improve readability

Refs: https://github.com/nodejs/node/issues/29126

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading