Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon4.gif   speeding up elog : gcc compile optimizations, posted by Fred Hooper on Tue Jul 27 18:33:52 2004 
    icon4.gif   Re: speeding up elog : gcc compile optimizations, posted by Stefan Ritt on Wed Jul 28 15:03:17 2004 
       icon4.gif   Re: speeding up elog : gcc compile optimizations, posted by Fred Hooper on Sat Jul 31 16:55:21 2004 
          icon4.gif   Re: speeding up elog : gcc compile optimizations, posted by Stefan Ritt on Mon Aug 2 09:05:48 2004 
             icon8.gif   Re: speeding up elog : gcc compile optimizations, posted by Drew on Tue Aug 3 16:59:36 2004 
Message ID: 619     Entry time: Tue Jul 27 18:33:52 2004     Reply to this: 622
Icon: Warning  Author: Fred Hooper  Author Email: fhooper@sushisoft.com 
Category: Bug fix  OS: Linux  ELOG Version: 2.5.3 
Subject: speeding up elog : gcc compile optimizations 
Elog is a great program, but it can be slow.

I noticed that the gcc compiler options in the tarball Makefile were not
conducive to speed.  There, I tried changing the gcc options to:

CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -W -Wall

for version 2.5.3, the compile worked, and the program appears to work as
normal, but a bit faster.   I have not benchmarked it, but I think it should
offer a nominal increase in speed.

In particular, I removed the "-g" profiling option, which is not needed for
production code, and can be safely removed. In addition, I put in slightly
aggressive optimization settings, so if this doesn't work for you, you can
first try removing the -f setting, and then backing off the optimization to -O2.

Other may want to post other settings that work for them.
ELOG V3.1.5-fe60aaf