[antlr-interest] how to do exceptions quickly

Randall R Schulz rschulz at sonic.net
Wed Apr 18 07:36:19 PDT 2007


On Wednesday 18 April 2007 03:03, Alex Shneyderman wrote:
> ...
>
> the output
> [1000000] Total time with non-static exceptions: 2662
> [1000000] Total time with static exceptions: 155

You will probably find a some dependency of the cost of constructing a 
Throwable (which includes calling Throwable.fillInStackTrace()) on the 
depth of the stack nesting at the point of construction. (Exception is 
a direct subclass of Throwable.)


Randall Schulz


More information about the antlr-interest mailing list