4 ms·
When you just want line number info from DWARF -- all the existing tools are extremely slow. A simple sorted address->line table with binary search is incredib
by Peaker 9y ago
When you just want line number info from DWARF -- all the existing tools are extremely slow.
A simple sorted address->line table with binary search is incredibly faster.
This is a very common use case. At the very least, this proves DWARF is not designed for its common use cases, not properly at least.
- the_mitsuhiko 9y ago> When you just want line number info from DWARF -- all the existing tools are extremely slow. Sure, but so are sourcemaps. If that is all the info you need then you can build tables for that which is as mentioned precisely what we do. However DWARF is more than that and DWARF is a really good standard for debug information data. You can trivially build cache files for the subset of info you need out of them.