diff options
author | Denis Vlasenko | 2007-12-02 03:27:42 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-12-02 03:27:42 +0000 |
commit | 4c139229611631a3497c224a61107b6b6918e3bf (patch) | |
tree | 122c8bb3315a9d0ecce0963c12209e70bb670aa6 /libbb/Config.in | |
parent | e2532ab5f2446ec736b10b24f57a36456deb197f (diff) | |
download | busybox-4c139229611631a3497c224a61107b6b6918e3bf.zip busybox-4c139229611631a3497c224a61107b6b6918e3bf.tar.gz |
Introduce FEATURE_COPYBUF_KB.
People who want smaller stack at any cost may use it
to reduce cp's stack usage (FEATURE_COPYBUF_KB=1).
Desktop people may get faster copy of big files
(FEATURE_COPYBUF_KB=32 is ~30% faster than 4kb)
Diffstat (limited to 'libbb/Config.in')
-rw-r--r-- | libbb/Config.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/Config.in b/libbb/Config.in index 5055015..6bbeffb 100644 --- a/libbb/Config.in +++ b/libbb/Config.in @@ -110,6 +110,16 @@ config FEATURE_EDITING_FANCY_PROMPT Setting this option allows for prompts to use things like \w and \$ and escape codes. +config FEATURE_COPYBUF_KB + int "Copy buffer size, in kilobytes" + range 1 1024 + default 4 + help + Size of buffer used by cp, mv, install etc. + Buffers which are 4 kb or less will be allocated on stack. + Bigger buffers will be allocated with mmap, with fallback to 4 kb + stack buffer if mmap fails. + config MONOTONIC_SYSCALL bool "Use clock_gettime(CLOCK_MONOTONIC) syscall" default y |