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: Sun, 7 Dec 2014 00:50:01 -0500 Message-ID: References: <83y4qn50ua.fsf@gnu.org> <957C7241-1F90-42A3-83DE-4696B483C1F0@lunaryorn.com> <83ppbz4t3f.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417931485 27553 80.91.229.3 (7 Dec 2014 05:51:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 05:51:25 +0000 (UTC) Cc: 19266@debbugs.gnu.org To: Sebastian Wiesner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 06:51:18 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 1XxUkX-0000Es-CO for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2014 06:51:17 +0100 Original-Received: from localhost ([::1]:57022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUkW-0002BU-SI for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Dec 2014 00:51:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUkQ-0002BN-6a for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 00:51:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxUkI-0005I3-KQ for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 00:51:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUkI-0005Hg-Gp for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 00:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XxUkH-00008Z-W7 for bug-gnu-emacs@gnu.org; Sun, 07 Dec 2014 00:51: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: Sun, 07 Dec 2014 05:51:01 +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.1417931405452 (code B ref 19266); Sun, 07 Dec 2014 05:51:01 +0000 Original-Received: (at 19266) by debbugs.gnu.org; 7 Dec 2014 05:50:05 +0000 Original-Received: from localhost ([127.0.0.1]:55941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XxUjM-00007B-Sc for submit@debbugs.gnu.org; Sun, 07 Dec 2014 00:50:05 -0500 Original-Received: from mail-wg0-f45.google.com ([74.125.82.45]:34838) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XxUjK-00006s-Ef for 19266@debbugs.gnu.org; Sun, 07 Dec 2014 00:50:03 -0500 Original-Received: by mail-wg0-f45.google.com with SMTP id b13so3905898wgh.18 for <19266@debbugs.gnu.org>; Sat, 06 Dec 2014 21:50:01 -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:content-transfer-encoding; bh=lphL8RUD2axARgdY3voLSFLqOJq5ezhoNoPdC69Wmzw=; b=c8JLxsBqiajgzInmSQ2YfPW0C4aaPLY2A03Vfvf0xyORS6x9Mr8rD0+fotTLW46kCf nAZJ+QY3vB2iQk/Fb4dlo5kaVIYrHQ5gFFtRvLqwQmg6Vd4Gny7j/zFDcNKQJ1yO7T1t Z0cXJQ6JAvPvDrlSmaFYM0T35HNO8dXxeEkSagk8XxX3nQ69Xhy1vtk3WX0WqXImlpmr uGhFTtMxGoRSv6sYn7odfjY/KnyRKzTdXqzubb+h7z/4tIM89T/9xX81UxRYmHVhAInO YFJboDJcSnD2ZwrUyyTgsWeFuM4XFo0HVJK88UoCfsNBfsebcaj+nAzKubZDNslDYH3E ubqw== X-Received: by 10.180.19.193 with SMTP id h1mr15251913wie.10.1417931401540; Sat, 06 Dec 2014 21:50:01 -0800 (PST) Original-Received: by 10.27.87.87 with HTTP; Sat, 6 Dec 2014 21:50:01 -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:96931 Archived-At: I tried looking into this a bit more, and I'm not very familiar with emacs's internals. I find that many faces that were previously used get garbage collected (I see macfont_close being called from cleanup_vector), but I don't know how faces are stored, nor do I understand why they are no longer referenced (common sense suggests that they should remain in memory as long as the buffer that used them is still there). It seems that the faces are not actively used for displaying the buffer, but can be expected to be reused in a short time (e.g., region face or comment face). Can someone explain where faces are stored and why they are no longer referenced, even though the buffer that used them is still active? I am not sure if this is related to this bug, but there is a constant CLEAR_FACE_CACHE_COUNT (=3D500) that causes face cache to be cleared every 500 redisplays. Does anyone understand why this is really necessary? If the fonts/faces are still in use, that seems wasteful, unless I misunderstand something. On 4 December 2014 at 05:19, Sebastian Wiesner wro= te: > >> Am 04.12.2014 um 11:17 schrieb Eli Zaretskii : >> >>> From: Sebastian Wiesner >>> Date: Thu, 4 Dec 2014 10:55:21 +0100 >>> Cc: Kirill Ignatiev , >>> 19266@debbugs.gnu.org >>> >>>> Please ask those persons to report here directly, and to read the >>>> responses and discussions. >>> >>> So here I am. >> >> Thanks for responding. >> >>> How do I subscribe to this bug so that I get replies per mail? >> >> You will be CC'ed on responses, so no need to subscribe. >> >>>> Optimize your font configuration, so that the font search becomes >>>> faster. >>> >>> I do not know about the OP, but I do not have any =E2=80=9Cfont configu= ration=E2=80=9D. All that I do is `(set-frame-font "Source Code Pro-13" ni= l t)'. >> >> I meant your system-wide font configuration, not what you do in Emacs. > > I don't have that either :) OS X comes with all sorts of fonts pre-insta= lled, and I just added some five fonts or so. > >>> Besides, I'm no font expert at all, so how am I supposed do =E2=80=9Cop= timize=E2=80=9D my fonts? >> >> Sorry, I don't know that. If you didn't install too many optional >> fonts that didn't come with your system, then I think you are already >> set. Otherwise, perhaps some OS X expert, here or on some other >> forum, could help.