A preliminary result of fold_buildN (memory usage included)

Mark Mitchell mark@codesourcery.com
Tue Mar 8 04:02:00 GMT 2005


Kazu Hirata wrote:
> Hi,
> 
> Here is a preliminary result for fold_buildN from my personal tree.  I
> compiled cc1-i files with ./cc1 -quiet -O2 -fomit-frame-pointer
> -fmem-report -o /dev/null.  I used --enable-gather-detailed-mem-stats
> to see how many nodes and bytes we are allocating for trees.  (Thanks
> Honza!)  I then summed up the memory usage of trees.
> 
>             original       patched   diff%
> #nodes    24,234,589    23,577,245 -2.712%
> #bytes 1,228,797,315 1,205,528,427 -1.893%
> 
> As far as compile time, I consistently see improvements of 0.1% or a
> bit more.

That's good.  I think that in situations where you're using PCH, you'll 
likely see a better improvement, as you'll need to access fewer PCH 
pages when later on.  Thanks for working on this cleanup; it's a 
long-standing issue.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc mailing list