Optimization of HTML generated by cargo timings
#13299
Labels
A-timings
Area: timings
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Performance
Gotta go fast!
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
Sometimes I use
cargo timings
in my projects, and find that the HTML generated by them often slows down the browser (chrome in my case).I have also measured the
cargo timings
in the cargo project for reproduce, and it seems to be taking longer to work as well. (As shown in the attached image, it took about 5s to become operational.)I guess that the browser is slowing down because the JS that is drawing the canvas is occupying the CPU.
There might be room for optimization of the generated JS.
cargo-timing.html.zip
Proposed Solution
No response
Notes
I didn't try this in Firefox because of #8850 .
The text was updated successfully, but these errors were encountered: