unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109187: Adjust consing_since_gc when objects are explicitly freed.
Date: Tue, 24 Jul 2012 05:11:05 -0400	[thread overview]
Message-ID: <jwv394hh6gf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <500E24D0.2040003@yandex.ru> (Dmitry Antipov's message of "Tue, 24 Jul 2012 08:30:08 +0400")

>> 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 ones most probably will be re-used again very soon,
> at the cost of link to/unlink from 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 advisable" time comes, it's the best
> bet to run GC as later as possible for the same amount of work.

I do not understand how that answers my question.
So to repeat: do you claim that "decrement consing_since_gc in
free_marker" helps performance?  If so, do you have concrete
measurements showing it?


        Stefan



  reply	other threads:[~2012-07-24  9:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1SsxuH-00048I-6E@vcs.savannah.gnu.org>
2012-07-23  8:58 ` [Emacs-diffs] /srv/bzr/emacs/trunk r109187: Adjust consing_since_gc when objects are explicitly freed Stefan Monnier
2012-07-23  9:26   ` Dmitry Antipov
2012-07-23 10:06     ` Stefan Monnier
2012-07-23 11:34       ` Dmitry Antipov
2012-07-23 23:11         ` Stefan Monnier
2012-07-24  4:30           ` Dmitry Antipov
2012-07-24  9:11             ` Stefan Monnier [this message]
2012-07-24 11:53               ` Dmitry Antipov
2012-07-24 21:59                 ` Stefan Monnier
2012-07-25  9:55                   ` Dmitry Antipov
2012-07-25 23:47                     ` Stefan Monnier
2012-07-23 11:10     ` Stephen J. Turnbull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv394hh6gf.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).