From: Patrick Lam Date: Thu, 27 Apr 2006 08:13:45 +0000 (+0000) Subject: Keith Packard X-Git-Tag: 2.3.96~57 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0037aad501e18e53acd2590483b99aaa2a1fba8c;p=fontconfig.git Keith Packard Reduce transient memory usage during config file parsing by allocating smaller buffers (64 seems to be a magic number). --- diff --git a/ChangeLog b/ChangeLog index d18f210..912520c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-04-27 Patrick Lam + Keith Packard + * 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 * src/fcinit.c: (FcMemReport): @@ -7,7 +14,6 @@ Eliminate pattern freezing 2006-04-27 Keith Packard - reviewed by: Patrick Lam * src/fccache.c: (FcDirCacheUnlink), (FcDirCacheHashName), @@ -24,18 +30,6 @@ Bump cache magic. Don't include /fonts.cache-2 in cache hash construction. -2006-04-26 Keith Packard - - * 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 * ChangeLog: * README: diff --git a/src/fcstr.c b/src/fcstr.c index 32c3a0a..e75ecb9 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -706,7 +706,7 @@ FcStrBufChar (FcStrBuf *buf, FcChar8 c) } else { - size = buf->size + 1024; + size = buf->size + 64; new = malloc (size); if (new) {