]> git.wh0rd.org - fontconfig.git/commitdiff
Keith Packard <keithp@keithp.com>
authorPatrick Lam <plam@MIT.EDU>
Thu, 27 Apr 2006 08:13:45 +0000 (08:13 +0000)
committerPatrick Lam <plam@MIT.EDU>
Thu, 27 Apr 2006 08:13:45 +0000 (08:13 +0000)
Reduce transient memory usage during config file parsing by allocating
    smaller buffers (64 seems to be a magic number).

ChangeLog
src/fcstr.c

index d18f21070f6a35306724810f321d56812389df92..912520c203c30440fc79fc3e39c9fd4182ff0fa3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-27  Patrick Lam         <plam@mit.edu>
+           Keith Packard  <keithp@keithp.com>
+       * src/fcstr.c (FcStrBufChar):
+
+       Reduce transient memory usage during config file parsing
+       by allocating smaller buffers (64 seems to be a magic number).
+       
 2006-04-27  Keith Packard  <keithp@keithp.com>
 
        * src/fcinit.c: (FcMemReport):
@@ -7,7 +14,6 @@
        Eliminate pattern freezing
 
 2006-04-27  Keith Packard  <keithp@keithp.com>
-
        reviewed by: Patrick Lam <plam@mit.edu>
 
        * src/fccache.c: (FcDirCacheUnlink), (FcDirCacheHashName),
        Bump cache magic.
        Don't include /fonts.cache-2 in cache hash construction.
 
-2006-04-26  Keith Packard  <keithp@keithp.com>
-
-       * src/fccache.c: (FcDirCacheUnlink), (FcDirCacheOpen),
-       (FcDirCacheWrite):
-       * src/fcfreetype.c: (FcFreeTypeQuery):
-       * src/fcint.h:
-       * src/fclist.c: (FcListAppend):
-       * src/fcmatch.c: (FcFontRenderPrepare):
-       * src/fcpat.c: (FcPatternDestroy), (FcPatternBaseFreeze),
-       (FcPatternFreeze), (FcPatternGet), (FcPatternDuplicate),
-       (FcStrUnserialize):
-
 2006-04-25  Patrick Lam         <plam@mit.edu>
        * ChangeLog:
        * README:
index 32c3a0a6d98bb44e0f6a700b8074499106936abf..e75ecb9b64e7048cf0dd64fadd604f2b2827e07d 100644 (file)
@@ -706,7 +706,7 @@ FcStrBufChar (FcStrBuf *buf, FcChar8 c)
        }
        else
        {
-           size = buf->size + 1024;
+           size = buf->size + 64;
            new = malloc (size);
            if (new)
            {