Prevent terrible perf regression by getting the if-condition right

(reported by Wouter Bolsterlee).
This commit is contained in:
Patrick Lam 2006-04-20 16:57:50 +00:00
parent 93f67dfc73
commit 55e145b025
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
2006-04-19 Patrick Lam <plam@mit.edu> 2006-04-20 Patrick Lam <plam@mit.edu>
* ChangeLog: * ChangeLog:
* README: * README:
* configure.in: * configure.in:
@ -6,6 +6,12 @@
Bump version to 2.3.95. Bump version to 2.3.95.
2006-04-20 Patrick Lam <plam@mit.edu>
* src/fcmatch.c (FcSortWalk):
Prevent terrible perf regression by getting the if-condition
right (reported by Wouter Bolsterlee).
2006-04-19 Patrick Lam <plam@mit.edu> 2006-04-19 Patrick Lam <plam@mit.edu>
Dominic Lachowicz <cinamod@hotmail.com> Dominic Lachowicz <cinamod@hotmail.com>

View File

@ -808,7 +808,7 @@ FcSortWalk (FcSortNode **n, int nnode, FcFontSet *fs, FcCharSet **cs, FcBool tri
*/ */
if (!trim || !*cs || !FcCharSetIsSubset (ncs, *cs)) if (!trim || !*cs || !FcCharSetIsSubset (ncs, *cs))
{ {
if (!trim && build_cs) if (trim || build_cs)
{ {
if (*cs) if (*cs)
{ {