On 2/7/2014 7:33 AM, Adam D. Ruppe wrote:
On Friday, 7 February 2014 at 11:37:16 UTC, Ola Fosheim Grøstad wrote:
How slow is slow? Is it slower than in Go and Python?

One problem with allocating the exception is the stop-the-world thing. My
cgi.d's built in httpd does some allocations in its constructor, which is run
once per request. It can answer requests at a rate of about 6000/sec on my
computer...

The gc is not the real speed issue with exceptions, after all, one can preallocate the exception:

    throw new Exception();

          v.s.

    e = new Exception();
    ...
    throw e;

It's the unwinding speed. Just have a look at what deh2.d has to do.

Reply via email to