This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: System call comparison


Mike Stump wrote:-

> Looks nice, thanks.  Next thing to think about would be 100 search 
> dirs, 10 files apiece, 10,000 #includes.  While these numbers aren't 
> very realistic, if you measure the speed improvements on more normal 
> things, I suspect they will win.  In code around here, we see a 30-50% 
> compile time speed increase with this change.  :-(

Sorry, we lost context.  "They" and "this change" is what?  I imagine
you mean the readdir() thing that Geoff mentioned?

I'd love to know if last week's cleanups had any effect for you, but
I don't expect you to go out your way to find out.

> Essentially the change is to readdir once for each -I directory and 
> populate a cache that can rule out trying certain include paths.
> 
> We should dust it off and submit it...  If you want to work on it, play 
> with our patch, just ask and we can send you the code we have...  I'm 
> working on the framework code now, which is more important, as it 
> provides the semantics, which trump speed (for now).

Please do send it.  I'm happy to see something go in if it maintains the
correctness we now have, is clean, and helps more than just extreme cases.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]