Darren New <dne### [at] sanrrcom> wrote:
> > The only other alternative is that it performs memory defragmentation
> > before freeing the objects.
> No. It usually performs memory defragmentation as a concurrent part of
> freeing the objects.
If it performs memory defragmentation, that means that memory does get
fragmented (and thus need the defragmentation in the first place). Your
original claim was that there's *no* fragmentation at all and that's why
freeing a group of objects is faster.
> > But that doesn't sound any faster than
> > freeing the objects directly.
> It depends on the ratio of freed objects to retained objects. If you
> retain only 2% of the objects you created since the last GC, it's a net win.
So it's faster only under certain conditions, not all?
--
- Warp
Post a reply to this message
|