Static Exceptions for Flow Control

Static Exceptions, when used for flow control, can dramatically reduce garbage generation and latency in Java and Kotlin applications. TL;DR To create high performance exceptions for flow control in the JVM, simply extend the following StaticException class. Then store the Exception instance in a static final field and throw it as needed. They're fast, because the call stack doesn't need to be…