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 localbitfield
instance to avoid property access throughstate
. -
improve readability
Refs: https://github.com/nodejs/node/issues/29126
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines