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: [PATCH] Speed up profile reading/writing


> Hello,
> 
> the linux kernel does not cope well with a lot of small reads and writes
> produced by the profiling code. This gets significant if instrumented
> program is large and runs for only small amount of time -- profiling
> gcc spends about 50% of time in system when compiling testsuite during
> profiledbootstrap. This patch makes the program to read/write the whole
> .da files at once, thus improving speed in this case (admitedly
> patological one) by about 30%.

I tried profiledbootstrap with this patch and it works in good speed
now.  I can use parallel make now too, so everything gets much smoother
than last week.

Honza


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