From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15876: 24.3.50; Highly degraded performance between rev 114715 and 115006 Date: Fri, 13 Dec 2013 20:55:19 +0200 Message-ID: <83sitw4m3s.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1386960970 10530 80.91.229.3 (13 Dec 2013 18:56:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Dec 2013 18:56:10 +0000 (UTC) Cc: sva-news@mygooglest.com, 15876@debbugs.gnu.org, dmantipov@yandex.ru To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 13 19:56:14 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 1VrXuI-00085Y-4N for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 19:56:14 +0100 Original-Received: from localhost ([::1]:44295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXuH-0006wF-Qk for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2013 13:56:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXuA-0006w9-Oi for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 13:56:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrXu6-0006vk-EZ for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 13:56:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXu6-0006vg-Bm for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VrXu6-0004lq-03 for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2013 13:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2013 18:56: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.138696093218299 (code B ref 15876); Fri, 13 Dec 2013 18:56:01 +0000 Original-Received: (at 15876) by debbugs.gnu.org; 13 Dec 2013 18:55:32 +0000 Original-Received: from localhost ([127.0.0.1]:48835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrXta-0004l2-OD for submit@debbugs.gnu.org; Fri, 13 Dec 2013 13:55:31 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:62401) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrXtW-0004kp-Ri for 15876@debbugs.gnu.org; Fri, 13 Dec 2013 13:55:28 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MXR00G00DQJHC00@a-mtaout22.012.net.il> for 15876@debbugs.gnu.org; Fri, 13 Dec 2013 20:55:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXR00G52DW690B0@a-mtaout22.012.net.il>; Fri, 13 Dec 2013 20:55:19 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:81904 Archived-At: > From: Stefan Monnier > Cc: Jan Djärv , > sva-news@mygooglest.com, 15876@debbugs.gnu.org, dmantipov@yandex.ru > Date: Fri, 13 Dec 2013 11:50:49 -0500 > > > . 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. The problem is not with fonts, it is with font-entities (a different type of object) stored within the font cache. I couldn't find any code that marks them "in use" or records them in some other Lisp object (which would have prevented them from being GC'ed). > - every now and then (ha ha!), we let the GC collect fonts that don't > have their "in_use" bit set. You didn't say who will reset that bit.