-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-timingsArea: timingsArea: timingsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`PerformanceGotta go fast!Gotta go fast!S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
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.

Proposed Solution
No response
Notes
- cargo 1.75.0 (1d8b05c 2023-11-20)
- Host: x86_64-apple-darwin
- Chrome Version 120.0.6099.216 (Official Build) (x86_64)
I didn't try this in Firefox because of #8850 .
Metadata
Metadata
Assignees
Labels
A-timingsArea: timingsArea: timingsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`PerformanceGotta go fast!Gotta go fast!S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.