src: shave about 20 bytes off each TLSWrap instance · nodejs/node@4018f3a · GitHub
Skip to content

Commit 4018f3a

Browse files
jasnelladuh95
authored andcommitted
src: shave about 20 bytes off each TLSWrap instance
By shifting from individual bool fields to a packed struct we can save 20 bytes per TLSWrap instance Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65144 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent c63e873 commit 4018f3a

2 files changed

Lines changed: 73 additions & 63 deletions

File tree

src/crypto/crypto_tls.cc

Lines changed: 36 additions & 38 deletions

src/crypto/crypto_tls.h

Lines changed: 37 additions & 25 deletions

0 commit comments

Comments
 (0)