[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109187: Adjust consing_since_gc

From: Dmitry Antipov
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109187: Adjust consing_since_gc when objects are explicitly freed.
Date: Tue, 24 Jul 2012 08:30:08 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 07/24/2012 03:11 AM, Stefan Monnier wrote:

What helps?  Adding those calls to free_marker, or adding the "decrement
consing_since_gc in free_marker"?  I can believe the first, but I doubt
the second will make much of a difference.

Local: both conses and markers are allocated very often, and explicitly freed 
most probably will be re-used again very soon, at the cost of link to/unlink 
the free lists, thus avoiding possible new block allocation.

Global: Ideal GC manages an infinite amount of memory so the collection is never
started. For the real cases, some time periods are more advisable for running GC
(when we're idle, for example); but, since we can't predict when "more 
time comes, it's the best bet to run GC as later as possible for the same amount
of work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]