A benchmark
Sean Kelly
sean at f4.ca
Thu Apr 27 09:06:59 PDT 2006
Walter Bright wrote:
> Ivan Kazmenko wrote:
>> But I
>> wonder what did it do in that ten seconds. Did it scan the array being
>> deleted
>> for hidden pointers?
>
> Yup. GC is a lousy tool to use for 64Mb arrays. A program necessarily is
> not going to have many of those, and they should be handled with
> explicit allocation/delete.
It would be nice if the GC could be told not to scan them as well (or if
this were sorted out automatically using type information), but that's
something I gather will happen at some point anyway if you're working on
a compacting GC :-)
Sean
More information about the Digitalmars-d
mailing list