[Shootout-list] Re: Shootout-list digest, Vol 1 #260 - 9 msgs
Pascal Obry
obry at adacore.com
Sun Apr 23 22:54:52 UTC 2006
Joseph,
> I disagree, see http://www.digitalmars.com/d/garbage.html
Yes, it is faster until the GC is launch (at any time) !
<<
* Garbage collection kicks in only when memory gets tight. When memory is not
tight, the program runs at full speed and does not spend any time freeing
memory.
# It is not predictable when a collection gets run, so the program can
arbitrarily pause.
# The time it takes for a collection to run is not bounded. While in practice
it is very quick, this cannot be guaranteed.
# All threads other than the collector thread must be halted while the
collection is in progress.
>>
So let's compare a program that does not deallocate memory with one
with GC :) And I do not speak about multi-threaded programs here where
the non-GC version can be quite faster. Don't tell me that a global lock
is cheap !
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
More information about the Shootout-list
mailing list