Contracts or Exceptions?

bearophile bearophileHUGS at lycos.com
Wed Mar 30 15:17:58 PDT 2011


Jonathan M Davis:

> Naturally, the executation time does vary some, but it's consistently over 400 
> times (and generally more like 450 times) more expensive to have the exception 
> be thrown and caught than it is to have it not be thrown.

On Windows in a benchmark I've seen thrown exceptions about as 12 times slower than Java ones.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list