Commit 9dc7d722 authored by Jon Skeet's avatar Jon Skeet
Browse files

Optimize enum parsing. In a small enum-heavy benchmark, this improved the time

of the benchmark (parsing a repeated message, where each message had 5 "small"
enum values and 5 "large" enum values) from ~39s to ~11s.

There is a small memory cost per enum used, but I expect this to be trivial compared
with other per-type costs.

Fixes issue 97.
parent 39182753
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment