I think the code that does string to enum is on line 2194, which is a foreach { if {} } loop that never breaks; it always checks all of them.
enum to string uses a switch if possible (src/phobos/std/conv.d
line 844)
- What does to!someEnum(string) lower to? Comparing speed to s... JR
- Re: What does to!someEnum(string) lower to? Comparing s... Adam D. Ruppe
