From: Juanma Barranquero <lekktu@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: Kevin Yu <yujie052@gmail.com>, 1952@emacsbugs.donarmstrong.com
Subject: bug#1952: 23.0.60[W32-Mingw]; opening etc/HELLO is slower than before
Date: Tue, 20 Jan 2009 16:49:37 +0100 [thread overview]
Message-ID: <f7ccd24b0901200749g2eba15dei1a9eb0ea372c6f8c@mail.gmail.com> (raw)
In-Reply-To: <4975C8F0.7070302@gnu.org>
On Tue, Jan 20, 2009 at 13:52, Jason Rumney <jasonr@gnu.org> wrote:
> This function was supposed to abort the font
> enumeration as soon as a match was found. But previously the logic was wrong
> so it was aborting if the first font did not match the given font-spec. So
> in the majority of cases, it would only enumerate one font and return nil,
> only if the first font matched would it go through every font in the system
> and return all the fonts that matched. After the fix, it will go through all
> the fonts for characters that do not have a matching font installed, and
> will go through enough fonts to find a match for others.
The change that causes the slowdown in my system is not the one to
add_one_font_entity_to_list, but this one to add_font_entity_to_list:
@@ -1449,6 +1449,5 @@
&& !EQ (spec_charset, Qunicode_bmp)
&& !EQ (spec_charset, Qunicode_sip)
- && match_data->pattern.lfCharSet == DEFAULT_CHARSET
- && logical_font->elfLogFont.lfCharSet != DEFAULT_CHARSET)
+ && match_data->pattern.lfCharSet == DEFAULT_CHARSET)
return 0;
Reverting this bit eliminates the problem.
Juanma
next prev parent reply other threads:[~2009-01-20 15:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <874ozowchu.fsf@cyd.mit.edu>
2009-01-19 2:40 ` bug#1952: 23.0.60[W32-Mingw]; opening etc/HELLO is slower than before Kevin Yu
2009-01-19 14:14 ` Jason Rumney
2009-01-19 14:52 ` Juanma Barranquero
2009-01-20 12:52 ` Jason Rumney
2009-01-20 15:49 ` Juanma Barranquero [this message]
2009-01-20 16:05 ` Jason Rumney
2009-01-20 16:21 ` Juanma Barranquero
2009-01-20 2:05 ` Kevin Yu
2009-01-20 12:23 ` Jason Rumney
2009-01-24 22:50 ` bug#1952: marked as done (23.0.60[W32-Mingw];opening etc/HELLO is slower than before) Emacs bug Tracking System
2009-01-22 13:22 ` bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist Jason Rumney
2009-01-24 13:28 ` Juanma Barranquero
2009-01-24 14:02 ` Jason Rumney
2009-01-24 22:50 ` bug#1990: marked as done (23.0.60; Emacs trying too hard to find fonts that don't exist) Emacs bug Tracking System
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0901200749g2eba15dei1a9eb0ea372c6f8c@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=1952@emacsbugs.donarmstrong.com \
--cc=jasonr@gnu.org \
--cc=yujie052@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).