r/programming • • Jul 05 '15

Fast as C: How to write really terrible Java

https://vimeo.com/131394615
1.1k Upvotes

394 comments sorted by

View all comments

Show parent comments

2

u/UMadBreaux Jul 06 '15

Isn't generating the stack trace expensive? I know in the .net CLR it is expensive

5

u/zenflux Jul 06 '15

It is, however if the exception is ignored it is theoretically possible for compilers to see that the stacktrace generation is dead code and elide it.