4 ms·
2.0 doesn't use exceptions for flow control - but out of interest, what do you mean "I don't think this works for high traffic web sites"? 1 exception for a req
by mrspeaker 15y ago
2.0 doesn't use exceptions for flow control - but out of interest, what do you mean "I don't think this works for high traffic web sites"? 1 exception for a request won't affect performance, right?
- Uchikoma 15y agoAlthough exceptions have become faster, and you can speed them up (overwrite stack generation code), they are slow mostly due to filling the stack trace. Mostly based on this: http://www.javaspecialists.eu/archive/Issue187.html http://www.javaspecialists.eu/archive/Issue187.html
- axiak 15y agoThat article mentions that the performance is dependent on the fillInStackTrace() method, which play framework overrides to do nothing.
- rkalla 15y agoWas not familiar with this method, appreciate the heads up guys. Did some quick micro benchmarks and it looks like I got an 11.5x speedup in some code that was using Exceptions for flow control.