[Bug c++/43149] Partial optimization

bschindler at inf dot ethz dot ch gcc-bugzilla@gcc.gnu.org
Tue Feb 23 16:24:00 GMT 2010



------- Comment #7 from bschindler at inf dot ethz dot ch  2010-02-23 16:24 -------
Okay, the need is simply this: 


I have an octree implemented using eigen. 
With gcc -g, it takes roughly 3 minutes to build the tree
With gcc -O1 -g, it takes about 1-2 seconds for the same

The problem is Eigen as it has tons and tons of small microfunctions which are
needed as it's a very generic C++ math library. 

If I could do this: 

gcc -g -foptimizenamespace=Eigen
it would reduce the time may be to 5 seconds, or even 10. In any case, that
leads to a lot better productivity when developing. 

The same issue can happen with boost, or even std. See this blog post to a very
impressive example: 

http://cplusplus.co.il/2010/01/15/tuples/

I don't really care if I cannot step into these std/boost/Eigen functions. As
long I can step through my own code and look at variables I'm fine


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149



More information about the Gcc-bugs mailing list