-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Byte alignment, optimization from 96 to 80 byte #865
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @wziww
The change is correct, but it has some unnecessary reordering. For example, there's no advantage in moving core
to not be the first field, and having it there is a little cleaner.
The main improvement is from grouping the bool types + the CheckWriteAction
, no need to reorder the zapcore.Core
.
reorde
Yeah you right. |
Codecov Report
@@ Coverage Diff @@
## master #865 +/- ##
==========================================
- Coverage 98.36% 98.21% -0.16%
==========================================
Files 43 43
Lines 2390 1904 -486
==========================================
- Hits 2351 1870 -481
+ Misses 32 27 -5
Partials 7 7
Continue to review full report at Codecov.
|
Is there an easy/automated way you were aligning this, or is it just manual checking? :) |
I do think manual checking is the best, try to form a habit while coding. |
Optimization
Logger
struct