float[] → Vertex[] – decreases performance by 1000%

David d at dav1d.de
Tue Jul 24 13:53:05 PDT 2012


Am 24.07.2012 21:46, schrieb David:
>> Hmm. Could this be a GC-related issue?
>
> Actually this could be. They are stored inside a Vertex* array which is
> allocated which is allocated with `malloc`, maybe the GC scans all of
> the created vertex structs? Could this be?

     import core.memory;
     GC.disable();

directly when entering main didn't help, so I guess it's not the GC


More information about the Digitalmars-d-learn mailing list