@Aissen@social.treehouse.systems
Post #1560399
2026-03-27 10:49 UTC
The first trick was to only run enabled lints, and it cut 315 out 750 (at the time) clippy lints, a 40% cut. It might seem trivial, but at the start when they were just a few lints, the filtering would have been the most expensive part… after hundred of lints, not so much.
#RustInParis
Replies (1)
-
@Aissen@social.treehouse.systems 2026-03-27 10:49
Reading the callgrind output, Alejandra found a few interesting things. The first one is that "Performance is a documentation problem". There's an expensive function to get the span for example; it was not documented as expensive; sometimes just reording this function if a few if conditions allowed saving a lot of time. #RustInParis