PATCH: Speed up get_special_section

H. J. Lu hjl@lucon.org
Sat May 7 01:01:00 GMT 2005


On Sat, May 07, 2005 at 10:20:17AM +0930, Alan Modra wrote:
> On Fri, May 06, 2005 at 03:53:50PM -0700, H. J. Lu wrote:
> > get_special_section scans the whole array for a match. This patch
> > reduces the number of searches.
> 
> Have you abandoned your idea of not calling get_special_section on
> sections loaded from an input file?  (Or did the profiling results
> shown include that optimization as well?  It's a little too good to
> be true.)

The profiling data came from assembler in 64K section tests.


H.J.



More information about the Binutils mailing list