[racket] with-handlers very slow?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Oct 18 12:26:42 EDT 2012

At Thu, 11 Oct 2012 17:14:26 +0000, Tomás Coiro wrote:
> Is there anyway to make exception handling faster? Putting "if"s everywhere 
> looks ugly.

Yes, exception handling is much slower than using `if'.

There are several reasons that it's slower (creating a prompt,
allocating a closure, slow path exit out of JIT-generated instruction
sequences), so there's no simple way to make `with-handlers' a lot
faster.



Posted on the users mailing list.