ELF Tool Chain/elftoolchain 3748 — trunk/libdwarf libdwarf_attr.c
libdwarf: Use the cached strtab pointer when reading string attributes. Previously we would perform a linear search of the DWARF section list for ".debug_str". However, libdwarf always caches a pointer to the strtab image in its debug descriptor. Using it gives a modest performance improvement when iterating over the attributes of each DIE. Obtained from FreeBSD r349424 by markj.
Delta | File | |
---|---|---|
+1 | -4 | trunk/libdwarf/libdwarf_attr.c |
+1 | -4 | 1 files |