float[] → Vertex[] – decreases performance by 1000%
Simen Kjaeraas
simen.kjaras at gmail.com
Tue Jul 24 14:17:27 PDT 2012
On Tue, 24 Jul 2012 22:53:05 +0200, David <d at dav1d.de> wrote:
> 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
As long as you're using malloc, the GC should leave it alone.
--
Simen
More information about the Digitalmars-d-learn
mailing list