On Wednesday, 9 September 2026 at 10:54:14 UTC, Per Nordlöw wrote:
On Monday, 7 September 2026 at 15:22:12 UTC, realhet wrote:
Hi,
I've compared 2 ways of converting enum identifier strings to
enum value:
- implemented with a manual associative array: 45ms
- implemented by std.conv.to: `name.to!Enum()`: 1299ms
One hotspot is the call to `NoDuplicates` at
https://github.com/dlang/phobos/blob/master/std/conv.d#L1109
Given that this thread is talking about runtime performance, not
compile time, I don't see how this could possibly be relevant.