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.
  • str.to!Enum perf... realhet via Digitalmars-d-learn
    • Re: str.to!... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: str... realhet via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... H. S. Teoh via Digitalmars-d-learn
          • ... realhet via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... Nick Treleaven via Digitalmars-d-learn
      • Re: str... Johan via Digitalmars-d-learn
    • Re: str.to!... Per Nordlöw via Digitalmars-d-learn
      • Re: str... Paul Backus via Digitalmars-d-learn

Reply via email to