Re: Performance problem with _SECURE_SCL=0



With the default settings there is not much difference but as I wrote in my
original post, I don't use the default settings.
In the settings of the project, in the C++ section, I set the optimization
attributes as follows:
optimization = custom
inline function expantion = default
favor size or speed = favor fast code (/Ot)

Ouch, yes, those settings make a phenomenal difference and do result
in the apparent discrepancy you mentioned.

As to exactly where the difference is coming from I can't see the wood
for the trees in the find algorithm code and the CHECKED macros. :(

Dave
.



Relevant Pages

  • Re: Access to optimization qualities
    ... is it somehow possible to get at current settings of optimization ... macro to expand differently according to optimization settings. ...
    (comp.lang.lisp)
  • Re: Performance problem with _SECURE_SCL=0
    ... In the settings of the project, in the C++ section, I set the optimization ... favor size or speed = favor fast code ... Ouch, yes, those settings make a phenomenal difference and do result ...
    (microsoft.public.vc.stl)
  • Re: Optimizing
    ... Depending on what language you're using you'll find the optimization ... settings somewhere within (for example, C++ has settings under the compiler ... > I have an app that compiles and works fine in Debug mode. ... > I try it in Release, it compiles fine but does not run correctly. ...
    (microsoft.public.dotnet.general)
  • Re: Compiler optimizations
    ... program and I've tried compiling it with -O2 and -O3 optimization ... settings. ... even though -O3 is a higher optimization setting. ... Have I found a bug in gcc? ...
    (comp.lang.c)

Loading