Files
binutils-gdb/gdb/dwarf2
Tom Tromey e7da7f8f71 Micro-optimize partial_die_info::read
While profiling the DWARF reader, I noticed that
partial_die_info::read creates a vector to store attributes.  However,
the vector is not needed, as this code only processes a single
attribute at a time.

This patch removes the vector.  On my machine, this improves the time
of "./gdb ./gdb" from 2.22 seconds to 1.92 seconds (mean times over 10
runs).

Note that the attribute is initialized by read_attribute, so it does
not need any special initialization.  Avoiding this also improves
performance a bit.

Tested on x86-64 Fedora 30.  I'm checking this in.

gdb/ChangeLog
2020-04-02  Tom Tromey  <tromey@adacore.com>

	* dwarf2/read.c (partial_die_info::read): Do not create a vector
	of attributes.
2020-04-02 12:49:35 -06:00
..
2020-03-31 07:29:53 -06:00
2020-03-28 09:25:41 -06:00
2020-03-26 09:28:26 -06:00
2020-03-26 09:28:09 -06:00
2020-03-26 09:28:09 -06:00
2020-03-26 09:28:08 -06:00
2020-03-26 09:28:08 -06:00
2020-03-26 09:28:20 -06:00
2020-03-26 09:28:20 -06:00
2020-04-02 12:49:35 -06:00