Introduce --cfg zerocopy_inline_always#3139
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new configuration flag, Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
e77105c to
4b8fff9
Compare
|
Warning Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting |
4b8fff9 to
c9a374e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3139 +/- ##
=======================================
Coverage 91.85% 91.85%
=======================================
Files 20 20
Lines 6067 6067
=======================================
Hits 5573 5573
Misses 494 494 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
165c805 to
d8bb9f9
Compare
Enables customers to tune inlining aggressiveness of many of zerocopy's public functions. At higher `codegen-units`, the Rust compiler may fail to inline invocations of conversion functions. Applying the `#[inline(always)]` attribute (as in #3137) forces inlining, but that might not be desirable for all monomorphizations or invocations. Dynamically padded types, for instance, require much more complex codegen than statically sized for unpadded dynamically sized types. While reducing `codegen-units` for a build can improve codegen, it carries a large penalty in build times. The `--cfg zerocopy_inline_always` flag provides a narrowly-scoped lever for achieving some of the benefits of `codegen-units=1` without the broad build time penalties. gherrit-pr-id: G750518420a745aec19276f7a24bcd0f66584bb2c
d8bb9f9 to
b19e71c
Compare
Enables customers to tune inlining aggressiveness of many of zerocopy's
public functions. At higher
codegen-units, the Rust compiler may failto inline invocations of conversion functions. Applying the
#[inline(always)]attribute (as in #3137) forces inlining, but thatmight not be desirable for all monomorphizations or invocations.
Dynamically padded types, for instance, require much more complex
codegen than statically sized for unpadded dynamically sized types.
While reducing
codegen-unitsfor a build can improve codegen, itcarries a large penalty in build times. The
--cfg zerocopy_inline_alwaysflag provides a narrowly-scoped lever for achieving some of the
benefits of
codegen-units=1without the broad build time penalties.--cfg zerocopy_inline_always#3139Latest Update: v6 — Compare vs v5
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/G750518420a745aec19276f7a24bcd0f66584bb2c && git checkout -b pr-G750518420a745aec19276f7a24bcd0f66584bb2c FETCH_HEADCheckout
git fetch origin refs/heads/G750518420a745aec19276f7a24bcd0f66584bb2c && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/G750518420a745aec19276f7a24bcd0f66584bb2c && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.