bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1952: 23.0.60[W32-Mingw]; opening etc/HELLO is slower than before


From: Jason Rumney
Subject: bug#1952: 23.0.60[W32-Mingw]; opening etc/HELLO is slower than before
Date: Wed, 21 Jan 2009 00:05:19 +0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Juanma Barranquero wrote:
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;
The earlier code never returned 0, always 1, so I don't think that is the actual change.

Reverting this bit eliminates the problem.

Strange, I'd expect that to speed things up, since the new code aborts a search that will never find a match where the old code would go through all the fonts, returning false matches that would fail later tests.


Can you debug this to see why the earlier version is faster?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]