Phobos' std.conv.to-conversion from enum to string doesn't scale beyond hundreds of enumerators

Stefan Koch uplink.coder at googlemail.com
Fri Jun 22 20:56:58 UTC 2018


On Friday, 22 June 2018 at 20:23:51 UTC, Steven Schveighoffer 
wrote:
> 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:
>
> https://run.dlang.io/gist/7c23567e0fa2e3b663d0b0695d3c257e
>
> No idea of the performance or capability given hundreds of enum 
> members, but something new to try.
>
> -Steve

run.dlang.io is down for me.
maybe you can provide a gh link?




More information about the Digitalmars-d mailing list