Fast but no exceptions?

I have been unable to find anything about this in the manual, so I will ask here.

What does the “Fast but no exceptions” build setting do? What kind of impact does it have on performance, and what does it help the most with?

It makes it faster cause your application will no longer throw application and ignore try-catch blocks

Sounds like it’s a matter of having a few more things on the stack… not a huge performance enhancer. Is that correct?

I remember reading something about it when if first came out. I think they said that it is actually a pretty big performance booster. That’s all I remember about it though…

it is one, cause exception handling thus the related “debug code” that throws then on error comes by no means for free

Guess I’ll have to do some profiling to see how much it hurts.

I’m only using it try/catch blocks around binaryserializer operations, in case I end up with a badly formatted save file. I guess I could rig something up to write a file before the operation, and remove it after the operation completes. At startup I could look for the file, and take action if it’s still there.

Unfortunately try/throw/catch is very slow. It’s nearly always better to do manual defensive coding, which also helps give you context and line while debugging as it’s much more explicit and often much clearer, directly linking problem with solution in the code.

If you feel comfortable enough with your skill and knowledge of the language and API then you will get a significant optimization benefit by dropping the feature.

That’s usually the case for me, but BinarySerializer::smile:eserialize() throws an exception if it gets an invalid binary stream, hence the try block.