src: make the options structs smaller with packed bits · nodejs/node@5902acf · GitHub
Skip to content

Commit 5902acf

Browse files
jasnelladuh95
authored andcommitted
src: make the options structs smaller with packed bits
While the Options objects are not a significant overhead, they still waste a few hundred bytes due to sloppy definition and alignment issues. Tighten it up and shave off a couple hundred wasted bytes. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65145 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
1 parent 2e519f8 commit 5902acf

3 files changed

Lines changed: 409 additions & 342 deletions

File tree

‎src/node_options-inl.h‎

Lines changed: 20 additions & 11 deletions

0 commit comments

Comments
 (0)