Feel free to use Avdi-style constants as methods when not calling the method repeatedly in a short period of time. Otherwise, consider the performance trade-off.
- GC for this example took about 1.8ms per 1000 calls.
- For significant numbers of iterations, using constants sped this example by 10x in reduced GC overhead
- Each call in this test required GC of 10 short strings and 1 Hash.