addr2line: addr2line is slower than the binutils version

From https://github.com/gimli-rs/gimli/issues/53.

One probable optimization will be to cache the parsed .debug_line rows.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (25 by maintainers)

Most upvoted comments

@philipc thanks (as always) for digging into other code bases 😃

$ wc -l addresses.txt 
3196 addresses.txt
$ for bin in addr2line target/release/addr2line; do echo $bin; cat addresses.txt | /usr/bin/time $bin -e a_binary_i_have > /dev/null; done
addr2line
1.40user 0.01system 0:01.42elapsed 99%CPU (0avgtext+0avgdata 63032maxresident)k
0inputs+26048outputs (0major+14222minor)pagefaults 0swaps
target/release/addr2line
1.55user 0.00system 0:01.56elapsed 99%CPU (0avgtext+0avgdata 9496maxresident)k
0inputs+26008outputs (0major+156minor)pagefaults 0swaps