-
-
Notifications
You must be signed in to change notification settings - Fork 308
Reorder variables in inflate functions to reduce padding holes #1803
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
Conversation
due to variable alignment requirements.
WalkthroughThe changes in this pull request primarily optimize the decoding process in the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🔇 Additional comments (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1803 +/- ##
===========================================
- Coverage 33.26% 33.20% -0.06%
===========================================
Files 66 66
Lines 5481 5481
Branches 1222 1222
===========================================
- Hits 1823 1820 -3
Misses 3399 3399
- Partials 259 262 +3 ☔ View full report in Codecov by Sentry. |
KungFuJesus
left a comment
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.
Even if the performance wins are only theoretical, reducing the memory footprint is always a plus, especially when it's no cost like this.
Reorder variables in inflate functions to reduce padding holes due to variable alignment requirements.
This is more a case of doing things the recommended way rather than an optimization.
This is a very very minor change, and while it is probable to have a positive impact on performance, it is so small that I can not reliably benchmark it as it is well within the run-to-run variability.
That said, it seems to trend towards being faster by around 0.02%.