diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-03-12 12:31:57 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-03-12 13:14:38 -0400 |
commit | de69ee14d3ed094cd2bc4df603a03675c28d1b5b (patch) | |
tree | 2ff346f409c2999657260f8edb25b4dcbfae246d /src/fcstr.c | |
parent | 39861b7d9c69e71b9a8fb0d0d04279520cb30f04 (diff) | |
download | fontconfig-de69ee14d3ed094cd2bc4df603a03675c28d1b5b.tar.gz |
[fcxml.c] Embed a static 64-byte attr buffer in FcPStack
Reduces number of mallocs called from FcConfigSaveAttr in my small test
from 160 down to 6.
Diffstat (limited to 'src/fcstr.c')
-rw-r--r-- | src/fcstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcstr.c b/src/fcstr.c index c683c80..bebf8ce 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -716,8 +716,8 @@ FcStrBufInit (FcStrBuf *buf, FcChar8 *init, int size) buf->size = size; } else { - buf->buf = buf->static_buf; - buf->size = sizeof (buf->static_buf); + buf->buf = buf->buf_static; + buf->size = sizeof (buf->buf_static); } buf->allocated = FcFalse; buf->failed = FcFalse; |