enumeratum-core v.1.5.7 release
Thanks to #105 raised by @daniel-shuy, entryName
on stackable traits for EnumEntry
has been refactored.
Things that depend on calling entryName
are immensely faster.
Before:
[info] Benchmark Mode Cnt Score Error Units
[info] EnumBenchmarks.entryNameStacked avgt 30 1499.862 ± 34.588 ns/op
[info] EnumBenchmarks.entryNameStandard avgt 30 4.461 ± 0.087 ns/op
After:
[info] Benchmark Mode Cnt Score Error Units
[info] EnumBenchmarks.entryNameStacked avgt 30 3.180 ± 0.040 ns/op
[info] EnumBenchmarks.entryNameStandard avgt 30 3.185 ± 0.075 ns/op