You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filing this so I don't forget it. This could significantly improve compression, and actually help downstream code in understanding the "structure" of the names as the mangling includes some metadata that you have to moreso guess at from the demangled version.
Apparently it's as simple as removing all the name.demangle calls in these files:
initial conclusion: v0 mangled names are on average longer than the demangled name -- doing this makes the sym file longer. However this is without inlinees, which are presumably the home of really nasty generic balls.
Filing this so I don't forget it. This could significantly improve compression, and actually help downstream code in understanding the "structure" of the names as the mangling includes some metadata that you have to moreso guess at from the demangled version.
Apparently it's as simple as removing all the
name.demangle
calls in these files:dump_syms/src/linux/elf.rs
Lines 119 to 151 in 213bd65
dump_syms/src/windows/symbol.rs
Line 573 in eb4e203
Rough design sketch:
INFO MANGLED 1
at the ~top of the file to make it unambiguous to tools that it support it whether the names are mangled or not.That's it. All the hard work would be in all the downstream tools checking for INFO MANGLED and embedding/invoking a demangler.
The text was updated successfully, but these errors were encountered: