[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slow redisplay after changing cursor color
From: |
Richard Stallman |
Subject: |
Re: slow redisplay after changing cursor color |
Date: |
Mon, 13 Sep 2004 03:01:22 -0400 |
(require 'cl)
(loop for i from 0 to 500 by 1
do (set-cursor-color (if (eq 1 (mod i 2))
"blue"
"red"))
(sit-for 0))
I figured out why this is so slow. Every time it changes
the cursor color, this alters the cursor-color face, and that
causes init_iterator to call free_all_realized_faces.
That empties the face cache, so all the faces have to
be realized again. This does a lot of consing, so
it causes GC also.
The only solution I see is to arrange that changing a user-level
face won't do free_all_realized_faces. Perhaps it could do this
only if the font has actually been used in a realized face.
Is anyone interested in working on that?
- slow redisplay after changing cursor color, NAKAMURA Toshikazu, 2004/09/12
- Re: slow redisplay after changing cursor color,
Richard Stallman <=
- Re: slow redisplay after changing cursor color, Kim F. Storm, 2004/09/13
- Re: slow redisplay after changing cursor color, Richard Stallman, 2004/09/13
- Re: slow redisplay after changing cursor color, Kim F. Storm, 2004/09/14
- Re: slow redisplay after changing cursor color, Kim F. Storm, 2004/09/14
- Re: slow redisplay after changing cursor color, Stefan Monnier, 2004/09/14
- Re: slow redisplay after changing cursor color, Kim F. Storm, 2004/09/14
- Re: slow redisplay after changing cursor color, NAKAMURA Toshikazu, 2004/09/15
- Re: slow redisplay after changing cursor color, Richard Stallman, 2004/09/15
- Re: slow redisplay after changing cursor color, Kim F. Storm, 2004/09/15
- Re: slow redisplay after changing cursor color, Richard Stallman, 2004/09/17