On Sun, Mar 16, 2008 at 05:05:57PM +0100, Johannes Hofmann wrote:
On Sun, Mar 16, 2008 at 10:47:07AM -0400, Jorge Arellano Cid wrote:
On Thu, Mar 13, 2008 at 09:01:37PM +0100, Johannes Hofmann wrote:
Hi,
here is another patch that avoids some malloc/free calls.
I decided to completely remove tag_name, and to use Tags[tag_idx]. Please check the patch in CVS.
Cool. That's even better.
BTW, with regard to these optimizations (which I was very fond of), profiling showed me that the zen of speed is to attack the main bottleneck...
Can you build a statically linked binary with profiling enabled? Here it does not work for some reason, so the timings in the gprof output are bogus. Only the counters work reliably.
I've done it lots of times in the past, with: ./configure --enable-gprof or CFLAGS="-g -O0" CXXFLAGS="-g -O0" ./configure --enable-gprof but now that I test, it doesn't work anymore! !? -- Cheers Jorge.-