-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
errors: lazily load fallback fluent bundle #95968
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit fdcd272f01469f270f7ea38057503953e109e78b with merge 9dc3dee37922f95ff26fc636c1692ebabd993816... |
☀️ Try build successful - checks-actions |
Queued 9dc3dee37922f95ff26fc636c1692ebabd993816 with parent 4e1927d, future comparison URL. |
Finished benchmarking commit (9dc3dee37922f95ff26fc636c1692ebabd993816): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Footnotes |
This looks great! 🎉 If we compare this change to the perf right before the fluent change was added we're at a slight perf improvement overall, and when only primary benchmarks are looked at, the improvements are even better. I definitely think we're going to want to ship this. |
r? @oli-obk |
@bors r+ nice! Also love the use of type alias impl trait |
📌 Commit fdcd272f01469f270f7ea38057503953e109e78b has been approved by |
This comment was marked as resolved.
This comment was marked as resolved.
fdcd272
to
71042ab
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Loading the fallback bundle in compilation sessions that won't go on to emit any errors unnecessarily degrades compile time performance, so lazily create the Fluent bundle when it is first required. Signed-off-by: David Wood <david.wood@huawei.com>
71042ab
to
9bfe0e3
Compare
@bors r=oli-obk |
📌 Commit 9bfe0e3 has been approved by |
☀️ Test successful - checks-actions |
Tested on commit rust-lang/rust@34a6c9f. Direct link to PR: <rust-lang/rust#95968> 💔 rls on windows: test-pass → build-fail (cc @Xanewok). 💔 rls on linux: test-pass → build-fail (cc @Xanewok).
Finished benchmarking commit (34a6c9f): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Note that this does not recover the 15s bootstrap performance regression from #95667 |
I didn't expect it to, that comes from the new dependencies, we'd need to go look at making those compile faster or reducing their number. |
…r=oli-obk errors: lazily load fallback fluent bundle Addresses (hopefully) rust-lang#95667 (comment). Loading the fallback bundle in compilation sessions that won't go on to emit any errors unnecessarily degrades compile time performance, so lazily create the Fluent bundle when it is first required. r? `@ghost` (just for perf initially)
Addresses (hopefully) #95667 (comment).
Loading the fallback bundle in compilation sessions that won't go on to emit any errors unnecessarily degrades compile time performance, so lazily create the Fluent bundle when it is first required.
r? @ghost (just for perf initially)