by weinzierl · 2y ago · 0 comments
The ~ 4 MiB of debug symbols the article talks about are for the whole libstd or just the portions that actually ended up in the binary?
I think the new default makes sense but I'd love to have the option to build a lean but debuggable release binary with just the needed symbols.
The second problem is dynamic dispatch. The overhead in "hello world" is from printing and panicking machinery (it handles closed stdout), and these features use vtables, so it's even harder to precisely analyze what's actually used and what isn't.