[Fontconfig] testing the mmap cache
Matthias Clasen
mclasen at redhat.com
Fri Sep 2 03:06:33 EST 2005
I tried to build and use the 2.4 branch today, and
things generally seem to work fine for me. Here is
one small patch which I needed, otherwise Pango
would segfault.
Index: src/fcpat.c
===================================================================
RCS file: /cvs/fontconfig/fontconfig/src/fcpat.c,v
retrieving revision 1.27.2.6
diff -u -r1.27.2.6 fcpat.c
--- src/fcpat.c 27 Aug 2005 02:34:24 -0000 1.27.2.6
+++ src/fcpat.c 1 Sep 2005 16:49:03 -0000
@@ -792,7 +792,7 @@
for (i = 0; i < p->num; i++)
{
h = (((h << 1) | (h >> 31)) ^
- FcStringHash ((const FcChar8 *)
((FcPatternEltU(p->elts)+i)->object)) ^
+ FcStringHash
(FcObjectPtrU((FcPatternEltU(p->elts)+i)->object)) ^
FcValueListHash ((FcPatternEltU(p->elts)+i)->values));
}
return h;
Very nice to see 600K of fontconfig vanish from the massif chart...
Regards, Matthias
More information about the Fontconfig
mailing list