From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109187: Adjust consing_since_gc when objects are explicitly freed. Date: Wed, 25 Jul 2012 19:47:24 -0400 Message-ID: References: <500D18D4.7010506@yandex.ru> <500D36C6.7000205@yandex.ru> <500E24D0.2040003@yandex.ru> <500E8CAC.3080303@yandex.ru> <500FC2AF.9080300@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343260054 16867 80.91.229.3 (25 Jul 2012 23:47:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 23:47:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 01:47:34 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SuBIi-0003DK-LP for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2012 01:47:32 +0200 Original-Received: from localhost ([::1]:58328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuBIh-0000R6-Ul for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2012 19:47:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuBIe-0000Qq-GV for emacs-devel@gnu.org; Wed, 25 Jul 2012 19:47:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuBId-0001Nl-Gp for emacs-devel@gnu.org; Wed, 25 Jul 2012 19:47:28 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:33740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuBId-0001Nb-D3 for emacs-devel@gnu.org; Wed, 25 Jul 2012 19:47:27 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6PNlPms000359; Wed, 25 Jul 2012 19:47:25 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BAD50AECAF; Wed, 25 Jul 2012 19:47:24 -0400 (EDT) In-Reply-To: <500FC2AF.9080300@yandex.ru> (Dmitry Antipov's message of "Wed, 25 Jul 2012 13:55:59 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4290=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4290> : streams <790337> : uri <1174950> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151888 Archived-At: > For xdisp.c, the original results are 600 GCs and 32.65 seconds. > When free_cons and free_misc subtracts from consing_since_gc, > and save_restriction_restore frees it's data explicitly, results > are 560 GCs and 31.95 seconds. > Of course, explicit free in save_restriction_restore makes no sense > if we fool GC with consing_since_gc: 600 GCs and 32.95 seconds. I see. I didn't expect that reducing memory use would be so little difference. Thanks for giving the details. > I don't understand why we're still wast^W^Wspending our time with > such a simple and almost obvious thing. Because it went against my intuition. Stefan