staticIndexOf is incredibly slow and memory intensive
Peter Alexander
peter.alexander.au at gmail.com
Sun Aug 26 14:45:02 PDT 2012
On Sunday, 26 August 2012 at 21:03:31 UTC, Andrej Mitrovic wrote:
> Maybe this is CTFE to blame more than the function itself.
>
> I have a project where I have a TypeTuple that holds a class
> tree of a
> wrapped C++ library. The tuple is iterated from in several
> places
> where an index has to be retrieved. Compiling this project
> takes 46
> seconds when using staticIndexOf and uses 700 MB RAM.
Do you have a minimal repro case for this? It makes it a lot
easier to track down the problem if we have a solid repro case
that we can test.
More information about the Digitalmars-d
mailing list