all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kirill Ignatiev <kirill.ignatiev@gmail.com>
To: Sebastian Wiesner <swiesner@lunaryorn.com>
Cc: 19266@debbugs.gnu.org
Subject: bug#19266: 24.4; Font-related window redrawing delays on OS X
Date: Sun, 7 Dec 2014 00:50:01 -0500	[thread overview]
Message-ID: <CACe-pWz-NRXCwh9sdogF6CPRbp_xeHNtP=KBUJgM7ywuWVE2NQ@mail.gmail.com> (raw)
In-Reply-To: <D08E4035-F1F1-40CD-8412-272FD2D312A0@lunaryorn.com>

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 (=500) 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 <swiesner@lunaryorn.com> wrote:
>
>> Am 04.12.2014 um 11:17 schrieb Eli Zaretskii <eliz@gnu.org>:
>>
>>> From: Sebastian Wiesner <swiesner@lunaryorn.com>
>>> Date: Thu, 4 Dec 2014 10:55:21 +0100
>>> Cc: Kirill Ignatiev <kirill.ignatiev@gmail.com>,
>>> 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 “font configuration”.  All that I do is `(set-frame-font "Source Code Pro-13" nil 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-installed, and I just added some five fonts or so.
>
>>> Besides, I'm no font expert at all, so how am I supposed do “optimize” 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.





  reply	other threads:[~2014-12-07  5:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04  7:13 bug#19266: 24.4; Font-related window redrawing delays on OS X Kirill Ignatiev
2014-12-04  7:30 ` Eli Zaretskii
2014-12-04  7:41   ` Kirill Ignatiev
2014-12-04  8:03     ` Eli Zaretskii
2014-12-04  8:20       ` Kirill Ignatiev
2014-12-04  9:55   ` Sebastian Wiesner
2014-12-04 10:17     ` Eli Zaretskii
2014-12-04 10:19       ` Sebastian Wiesner
2014-12-07  5:50         ` Kirill Ignatiev [this message]
2014-12-07 16:09           ` Eli Zaretskii
2014-12-10 23:50             ` Kirill Ignatiev
2014-12-11 17:45               ` Eli Zaretskii
2014-12-12  2:10                 ` Kirill Ignatiev
2014-12-12  8:06                   ` Eli Zaretskii
2014-12-17  1:35                     ` Kirill Ignatiev
2014-12-17  2:13                       ` Kirill Ignatiev
2014-12-12  8:29                   ` Sebastian Wiesner
2014-12-12  9:33                     ` Kirill Ignatiev
2014-12-12 10:56                       ` Eli Zaretskii
2022-04-30 15:44 ` Lars Ingebrigtsen
2022-05-02 16:22   ` Kirill Ignatiev
2022-05-03  9:05     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACe-pWz-NRXCwh9sdogF6CPRbp_xeHNtP=KBUJgM7ywuWVE2NQ@mail.gmail.com' \
    --to=kirill.ignatiev@gmail.com \
    --cc=19266@debbugs.gnu.org \
    --cc=swiesner@lunaryorn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.