[patch] Share all integer constants

Nathan Sidwell nathan@codesourcery.com
Thu Oct 7 15:59:00 GMT 2004


Zdenek Dvorak wrote:

>>Would it not be better to keep using the vectors for small ints, and
>>fall back on the cache for larger ones?
> 
> 
> the amount of memory spent by the vectors is not completely negligible
> (about 1% of memory spent on trees for combine.i, and very likely more
> for smaller programs).  But I will give it try, perhaps it will help.

Perhaps the default vector length is being set too high.  Maybe it
can be retuned once you've got a hash table as backup.  The distribution
of constants falls off pretty rapidly, making the very small ones go
very fast will be a win.

Thanks for giving it a whirl.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Gcc-patches mailing list