Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.2
-
None
Description
Generated enum classes currently use a map in findByValue() to go from an integer value to an enum.
Instead of using a map, it is faster to simply switch on the value with a default case returning null.
On some benchmarks I ran, this saved 7% of deserialization time.