trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
725 stars 62 forks source link

Exception traces are decoded eagerly rather than lazily #11

Closed eriksoe closed 14 years ago

eriksoe commented 14 years ago

Calls to ERT.decode_exception2() or ERT.decode_exception3() trigger stack trace decoding, which is rather costly when the stack is deep, such as in list comprehensions.

eriksoe commented 14 years ago

I've optimized stack trace decoding, which makes this less of an issue.

krestenkrab commented 14 years ago

I boxed traces in an ELazySeq so that should do it.