From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kirill Ignatiev Newsgroups: gmane.emacs.bugs Subject: bug#19266: 24.4; Font-related window redrawing delays on OS X Date: Tue, 16 Dec 2014 21:13:16 -0500 Message-ID: References: <83y4qn50ua.fsf@gnu.org> <957C7241-1F90-42A3-83DE-4696B483C1F0@lunaryorn.com> <83ppbz4t3f.fsf@gnu.org> <83fvcrzbku.fsf@gnu.org> <8361dit70g.fsf@gnu.org> <83iohhs35v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1418782486 32489 80.91.229.3 (17 Dec 2014 02:14:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2014 02:14:46 +0000 (UTC) Cc: Dmitry Antipov , Sebastian Wiesner , 19266@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 03:14:34 2014 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 1Y1483-0007U0-29 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 03:14:19 +0100 Original-Received: from localhost ([::1]:47608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1482-0004MI-B7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 21:14:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y147s-0004Ls-UO for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 21:14:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y147m-0003rv-Ox for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 21:14:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y147m-0003rr-MB for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 21:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y147m-00009L-BX for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 21:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kirill Ignatiev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Dec 2014 02:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19266-submit@debbugs.gnu.org id=B19266.1418782399496 (code B ref 19266); Wed, 17 Dec 2014 02:14:02 +0000 Original-Received: (at 19266) by debbugs.gnu.org; 17 Dec 2014 02:13:19 +0000 Original-Received: from localhost ([127.0.0.1]:48289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1474-00007w-RI for submit@debbugs.gnu.org; Tue, 16 Dec 2014 21:13:19 -0500 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:42757) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1472-00007m-N5 for 19266@debbugs.gnu.org; Tue, 16 Dec 2014 21:13:17 -0500 Original-Received: by mail-wi0-f174.google.com with SMTP id h11so14181577wiw.7 for <19266@debbugs.gnu.org>; Tue, 16 Dec 2014 18:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e8J8P1L2sB2vfBD6NDo0gershLySCvyjXJJv5jXafUU=; b=EMM46iPMyVvKBZa4of30YZoIy6oyGB3+stWMGHVVMHLHhTy8B/ytbjdSnPqo3bod+F U7KfNTmFH1kGnZ590NL2qsrB7LQXtQRd0xnk4X/wj1xXzW3CV+WxdY2dZLTaxLCjE9ru SyCAbNqusW/lR3i1ciAiGlaApZ6eZBSl6C6ya/nHJqu3D5Mc3//eqBoyQSSalEvMMICH ZfBlb7TeHg0Ad0eS/qEG9u+YRRLeumP3SrwpIHd27Wfi+Dk1OCbPYVdQKKGqMFqIdG7y 8gikZmWS2DqELPQsl4kwgwsMhySLHKg12Kghio5IkR2t9VvfV8jb9Bn0IlCj7b7wUgDS Bmhg== X-Received: by 10.181.13.42 with SMTP id ev10mr9540405wid.78.1418782396235; Tue, 16 Dec 2014 18:13:16 -0800 (PST) Original-Received: by 10.27.87.87 with HTTP; Tue, 16 Dec 2014 18:13:16 -0800 (PST) In-Reply-To: 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:97426 Archived-At: On some further testing, it seems that commenting out the section of compact_font_caches that calls compact_font_cache_entry works (the section surrounded in !defined(HAVE_NTGUI)). There are no more repeated calls to font_open_entity, and fonts are not closed as before. I am unable to reproduce the redisplay delay with the two-font example above. This presumably stops all cached fonts from being closed at all, ever, so maybe there should be a more elegant solution. This could (?) be an issue that mark_face_cache just doesn't mark enough fonts, so unused fonts get discarded and must be loaded again. Also, this doesn't explain why garbage-collect doesn't seem to trigger font closing.