Solved Performance difference
-
@Chris-Kawa
I respect what you suggest, and am grateful for food for thought/your experiences. (And, yes, if I were releasing a game/frame-rate-critical app the situation would be different.) Just to be clear, I did not say we release "debug" builds, I said we release compiling/linking not for debug (e.g. so no memory zeroing, nor memory debug functions, nor debug libraries) but equally not with any optimization (-O...
) compilation.A horse looked at me the wrong way 20 years ago so i don't use cars and walk everywhere.
Yep, I don't use horses ;-)
Purely, purely OOI: is whatever software you develop used in-house, or is it sold to external customers where you cannot replicate their environment?
-
is whatever software you develop used in-house, or is it sold to external customers where you cannot replicate their environment?
I'm a game developer so both. We do in-house tools, big and small, think from Notepad to Photoshop size, used by few hundreds of people locally at their stations and on a set of servers, and then the game itself goes to all sorts of PCs and consoles across millions of players around the world so a very diverse set of hardware and software configurations.
-
@Chris-Kawa
Yeah, a rather different situation from us, "mission critical".Final question: now that you know I am not saying we release with any debug compilation/libraries/anything (which I agree would be terrible), only that we do not compile our own code with
-O...
, [plus it's not a game] are you willing to relax your condemnation a little, or am I still going to Hell in a handbasket? :) -
a rather different situation from us, "mission critical".
We "release" tools almost daily so If I cause a crash a large group of people can't do their work and that costs, so it's pretty mission critical too, although not life threatening. Well, maybe just mine when those angry people come to me :)
If you're under some regulations then it's not on you. I know there are industries where changing a configuration can mean a year of retesting, reapproving and certification. A lot of aviation for example still uses languages and compilers from the 70s because of that fact. If your software can kill a patient because you flipped a flag then it definitely should not be an ad hoc decision.
are you willing to relax your condemnation a little, or am I still going to Hell?
I'm not saying you're going to hell. I'm just saying you're gonna have a lot of regrets lying on your death bed ;) White bears drowning, bees vanishing, Australia burning, all that life people wasted waiting for your software to finish...
It's just a waste, that's all. A thing that can be done in microsecond you do in three. Nothing more, nothing less. It's the same as throwing out garbage on the pavement - it's not a world ending event, but how you feel about it is up to you.
-
For me the question is most OOI.
While writing code I try to always choose the best solution,
while this is not always possible, stuff like this is rarely documented and
consistent so I appreciate everyone responding. You learn new stuff every day! -
@Chris-Kawa said in Performance difference:
I'm just saying you're gonna have a lot of regrets lying on your death bed ;)
Believe me, one thing I will not be thinking about/regretting on my deathbed is whether I did or did not switch on a compiler optimization flag ;-)
-
@JonB It doesn't happen often but one switch can sometimes change the world. Anyways, I'm happy to see you confident in your future predicting abilities. Fingers crossed you're right.
-
@Chris-Kawa
With your surname, are you from down-under? -
@JonB Not sure what you mean. My last name is Polish and translates to coffee, which reminds me I'm up for a break :) Have a nice day.
-
@Chris-Kawa
It looked a bit like "Kiwi" to me, I was way off. "("Down-under" means Australia or New Zealand.) It may be wasted on you, but the one thing I was thinking I might regret on my deathbed is that Kylie never chose to marry me. I do not believe that is because she is disappointed that I did not use compiler optimizations ;-) All the best :)