Mercurial > hg > octave-kai > gnulib-hg
changeset 15486:3f9f907b5afe
* lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
This is a performance improvement for 64-bit hosts: it causes the
value of DEFAULT_MXFAST to track what's in glibc on such hosts.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 31 Jul 2011 12:50:12 -0700 |
parents | 20a2699b8a90 |
children | fe7627541c17 |
files | ChangeLog lib/xalloc.h |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-07-31 Paul Eggert <eggert@cs.ucla.edu> + + * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc. + This is a performance improvement for 64-bit hosts: it causes the + value of DEFAULT_MXFAST to track what's in glibc on such hosts. + 2011-07-31 Bruno Haible <bruno@clisp.org> stdioext: Add support for Minix.
--- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -192,9 +192,9 @@ { /* The approximate size to use for initial small allocation requests, when the invoking code specifies an old size of - zero. 64 bytes is the largest "small" request for the - GNU C library malloc. */ - enum { DEFAULT_MXFAST = 64 }; + zero. This is the largest "small" request for the GNU C + library malloc. */ + enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }; n = DEFAULT_MXFAST / s; n += !n;