diff options
author | jasone <jasone@FreeBSD.org> | 2006-03-19 18:28:06 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2006-03-19 18:28:06 +0000 |
commit | 6ab124975fa792bcb7198b91a36afcfc61782310 (patch) | |
tree | 0978e128d1cdc2f458274f1c8af7800138d837c8 /lib/libc/stdio/xprintf.c | |
parent | 9c0a4e82f3f7381e1fde26b4c69cfc31e480bd53 (diff) | |
download | FreeBSD-src-6ab124975fa792bcb7198b91a36afcfc61782310.zip FreeBSD-src-6ab124975fa792bcb7198b91a36afcfc61782310.tar.gz |
Optimize realloc() to reallocate in place if the old and new sizes are
close enough to each other that reallocation would allocate a new region
of the same size. This improves the performance of repeated incremental
reallocations by up to three orders of magnitude. [1]
Fix arena_new() to properly constrain run size if a small chunk size was
specified during runtime configuration.
Suggested by: se [1]
Diffstat (limited to 'lib/libc/stdio/xprintf.c')
0 files changed, 0 insertions, 0 deletions