-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Small highlight.rs
optimizations
#147106
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
base: master
Are you sure you want to change the base?
Small highlight.rs
optimizations
#147106
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
… r=<try> Small `highlight.rs` optimizations
This comment has been minimized.
This comment has been minimized.
(for the record) cc #146992 |
I wonder if we should have a rustdoc-specific perf check for cases where something only can affect rustdoc performance. |
I've been fantasizing about that a lot. That would be sooo cool, at least for me personally (as someone whose majority of contributions tend to be around rustdoc perf and trying to improve it or at least not hurt it). But to be fair, it does sound like something that would require too much investment from the already-swamped infra team, for something that wouldn't be THAT beneficial across the board. I mean, apart from rustdoc people, it might make the perf runner queue shorter, but it does seem to be pretty short lately (probably more so since the migration to the beefier runner) |
It doesn't sound that costly on the backend side of things, honestly. It probably just needs someone willing to implement it. |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (ee53c6e): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.7%, secondary -3.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 471.818s -> 471.944s (0.03%) |
Let's get a perf run to see if these actually make any difference?
r? @GuillaumeGomez
(third commit is a cleanup, first two are the optimizations)