On Mon, 3 Oct 2011, Michael Meissner wrote: > On Sat, Oct 01, 2011 at 02:11:27PM +0000, Joseph S. Myers wrote: > > On Fri, 30 Sep 2011, Michael Meissner wrote: > > > > > Is this enough of a savings to continue on? I'm of two minds about it, > > > one is > > > > The thing to measure is not so much memory as startup time (how long it > > takes to compile an empty source file), which is important for libraries > > and programs using a coding style with lots of small source files. > > With my current changes which has modified the standard builtins to be lazy, > but I haven't yet done the machine dependent builtins, I saw a difference of > 0.0022 seconds (0.0170 vs. 0.0148) on my 3 year old Intel core 2 laptop. I > did > 14 runs in total, and skipped the fastest 2 runs and slowest 2 runs, and then > averaged the 10 runs in the middle. I built boostrap builds with release > checking with the top of subversion head without changes and with my changes. > > So at this point, I'm wondering whether it is worth it to finish the > optimization for lazy builtins.
That's a 13% improvement. It's very definitely worthwhile - most compile time improvements are probably 1% or less. -- Joseph S. Myers jos...@codesourcery.com