Subject: [ggl] inline keyword in class definition
From: Hartmut Kaiser (hartmut.kaiser)
Date: 2009-05-11 09:28:39
> Thanks and welcome to the list!
> > Does this slowdown happen in release mode?
> > If yes, did you #define _SCL_SECURE=0 before including anything else?
> > The STL for VC9 is known to be
> > slow in release mode if the 'secure' implementation is used (which
> > unfortunately is the default). You have to be very careful with this,
> > though, as it breaks ABI compatibility. That means you should use the
> > settings for _SCL_SECURE for _all_ modules used in your application.
> > Otherwise strange errors will happen at runtime.
> These are the defines:
> So yes, it is all there. It might be a bit too much. The defines for
> 2005 are identical. They are defined in project properties so supposed
> to be always there.
In this case I don't understand why VC9 is slower. In my experience the
generated code isn't worse than code generated by VC8. We did some
measurements comparing those compilers as well. We saw a very similar
slowdown, but only as long as _SCL_SECURE was not defined. After setting it
to zero (i.e. disabling secure mode) the compilers have been on par. I'd
suggest to re-check the build setting for the performance measurements.
Geometry list run by mateusz at loskot.net