PR32260: Improve estimate of number of strings
Alan Modra
amodra@gmail.com
Fri Oct 18 00:31:18 GMT 2024
On Thu, Oct 17, 2024 at 03:28:58PM +0200, Michael Matz wrote:
> On Thu, 17 Oct 2024, Alan Modra wrote:
> > If you used your upper bound then you'd need no resizing.
> >
> > Perhaps even better would be to use a more conservative estimate
> > based on the total section size, then implement resizing in the normal
> > fashion on inserting entries.
>
> You mean "less conservative", right? In the sense of less over-estimation
> and hence not all content fitting into the table.
Yes.
> Anyway, I'll try to rewrite the code a little and see how the performance
> fares.
Thanks. I'm happy to do a little rewriting myself, but I'll not start
doing that unless you tell me to go ahead.
--
Alan Modra
More information about the Binutils
mailing list