Elektrine lite

← Feed

@Aissen@social.treehouse.systems

Post #1560400

2026-03-27 10:49 UTC

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

Replies (1)

  • A second lesson is that "Performance is taking care". In documentation, many secondary compilers were called for doc tests. Just preventing useless calls improved performance by a lot. #RustInParis

    Open ##1560401