On Sunday, 24 June 2018 at 22:33:09 UTC, Jonathan M Davis wrote:
On Thursday, June 21, 2018 22:46:23 Per Nordlöw via Digitalmars-d wrote:
I've discovered the annoying fact that std.conv.to doesn't scale
for enum to string conversion when the enum has hundreds of
members. This because of a call to `NoDuplicates` which has (at
least) O(n*log(n) time and space complexity.

I'm certainly not going to argue against trying to make std.conv.to faster, but what on earth are you doing that you have an enum with hundreds of members? I would have thought that an enum that had anywhere near fifty members was enormous, let alone hundreds. I'm not sure that I've ever dealt with an enum that had more than maybe a couple dozen members.

- Jonathan M Davis

A knowledge database. The relation kind enum statically mirrors all the relations in a set of very large ontologies. I might decide to make it dynamically defined instead...

Reply via email to