Phobos' from enum to string doesn't scale beyond hundreds of enumerators

Steven Schveighoffer schveiguy at
Fri Jun 22 20:23:51 UTC 2018

On 6/22/18 2:15 PM, Steven Schveighoffer wrote:
> On 6/22/18 1:41 PM, Stefan Koch wrote:
>> (I'd suggest a non-recursive mergesort.)
> How will that perform in CTFE? I'm concerned about swapping values 
> making it allocate new arrays all over the place.

This kind of sounded like a fun experiment, so I tried it:

No idea of the performance or capability given hundreds of enum members, 
but something new to try.


More information about the Digitalmars-d mailing list