Re:Optimizing Rust Struct Size
by eddyb on Saturday April 15, 2017 @07:47PM
(#14123491)
The correct type layout is already encoded in debuginfo, so I'm not sure how that's a problem unless you're avoiding a debugger intentionally or simply can't use one?
[ Parent
| on HN ]
Do we generate debuginfo by default at -O? If so, then TIL. :)
Not by default, no, but what I mean that if you're debugging you can just enable debuginfo and that will contain the descriptions of the types including all fields, with the right offsets and everything.