Is garbage collection faster/slower/the same speed as malloc/free?
We introduceoracular memory management, an approach that lets us
answer this question by measuring unaltered Java programs as if
they used malloc and free. The result: a good GC can match the
performance of a good allocator, but it takes 3X-5X more space.
Well, this probably dosn't apply either ;-) We don't compare speed
between GC and malloc/free but between GC and RC/Foundation. The
latter has significant processing overhead on its own, which is
likely (again, we can't say till we try ;-) to exceed that of the GC.
If a good GC is as fast as malloc/free you can assume it to be three
times as fast as Foundation RC ;-) So you get three times the
performance for three times the RAM ;-)
Anyway, I suppose the point is that memory consumption is bound to
grow. Though I really wonder how big the real world effect will be.
Maybe they really keep supporting RC for serious apps and suggest GC
for quick/small hacks. Though I doubt RC will survive 10.7 ;-)
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden