From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15876: 24.3.50; Highly degraded performance between rev 114715 and 115006 Date: Fri, 13 Dec 2013 11:50:49 -0500 Message-ID: References: <867gcdiqji.fsf@somewhere.org> <86bo1eaelv.fsf@somewhere.org> <86r4a2vqbu.fsf@somewhere.org> <867gbqdisp.fsf@somewhere.org> <83haas5y88.fsf@gnu.org> <529C64C5.2040509@yandex.ru> <834n6r5edh.fsf@gnu.org> <529DAAED.9000504@yandex.ru> <83ob4y3wi5.fsf@gnu.org> <529DF416.7070807@yandex.ru> <83txeo33ls.fsf@gnu.org> <52A01D59.7030304@yandex.ru> <83lhzz2oal.fsf@gnu.org> <52A80BA8.3050403@yandex.ru> <83ob4nwdw0.fsf@gnu.org> <52A8A850.8040302@yandex.ru> <83k3fb6yvb.fsf@gnu.org> <837gb86aiq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386953478 18998 80.91.229.3 (13 Dec 2013 16:51:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Dec 2013 16:51:18 +0000 (UTC) Cc: sva-news@mygooglest.com, 15876@debbugs.gnu.org, dmantipov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 13 17:51:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VrVxR-0004UH-5b for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 17:51:21 +0100 Original-Received: from localhost ([::1]:43519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrVxQ-0001xu-L4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 11:51:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrVxH-0001xa-1U for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 11:51:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrVx8-0000qR-Kc for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 11:51:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrVx8-0000qK-HN for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 11:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VrVx7-0006e7-Md for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2013 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15876-submit@debbugs.gnu.org id=B15876.138695345925539 (code B ref 15876); Fri, 13 Dec 2013 16:51:01 +0000 Original-Received: (at 15876) by debbugs.gnu.org; 13 Dec 2013 16:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:48736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrVx4-0006dq-Cq for submit@debbugs.gnu.org; Fri, 13 Dec 2013 11:50:59 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:57614) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrVx0-0006df-T1 for 15876@debbugs.gnu.org; Fri, 13 Dec 2013 11:50:55 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id rBDGonVo012413; Fri, 13 Dec 2013 11:50:51 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 344ADAE21D; Fri, 13 Dec 2013 11:50:49 -0500 (EST) In-Reply-To: <837gb86aiq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Dec 2013 17:22:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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 RV4791=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4791> : inlines <321> : streams <1090247> : uri <1622905> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81892 Archived-At: > . I also tried a different approach: compact only those font-entities > that don't match any font that is still used by some face on some > frame. (I used font_match_p for that.) This seems to work, except > that font_match_p is evidently not safe enough to be used in the > middle of GC -- I got crashes a few times. When it did work, it > again prevented the compaction, as if the compacting code were not > there at all. Maybe a better way goes along the lines of: - every time we use a font, we set an "in_use" bit. - every now and then (ha ha!), we let the GC collect fonts that don't have their "in_use" bit set. The now-and-then could be something as "at least N seconds passed and we've done at least M garbage collections". Still, the effort doesn't seem worth the trouble, since the benefit is too small (only appears in pathological cases). Stefan