summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/xprintf.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2006-03-19 18:28:06 +0000
committerjasone <jasone@FreeBSD.org>2006-03-19 18:28:06 +0000
commit6ab124975fa792bcb7198b91a36afcfc61782310 (patch)
tree0978e128d1cdc2f458274f1c8af7800138d837c8 /lib/libc/stdio/xprintf.c
parent9c0a4e82f3f7381e1fde26b4c69cfc31e480bd53 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud