(stefan) wrote: > Hi Morten, > Did you activate compiler optimizations (e.g. use the release build in VS)? > While your patch makes the code easier to read, the GCC output is > the same as for the unchanged code - except for an additional NOP > to ensure optiminal branch target alignment. > -- Stefan^2.
I used TortoiseSVN's release build script, yes (debug build is SLOW for the tests I use). I'm not surprised that gcc optimizes it fine without this change, but VS compiler clearly doesn't. Could you please include my email address in replies? Thanks, Morten