Performance of exception handling

Vladimir Panteleev vladimir at thecybershadow.net
Tue Apr 26 03:57:55 PDT 2011


On Tue, 26 Apr 2011 13:08:33 +0300, Alexander <aldem+dmars at nk7.net> wrote:

> Hi,
>
> I'm doing some benchmarks (DMD 2.052 on Linux), and noticed that  
> exception handling is terrible
> slow even on quite fast hardware.

On my Windows box with an i7 920, a simple try/throw/catch loop runs at  
about 130000 iterations per second.

Perhaps DMD doesn't use SEH on Linux, and instead uses setjmp/longjmp?

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list