diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-02 03:27:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-02 03:27:42 +0000 |
commit | 4c139229611631a3497c224a61107b6b6918e3bf (patch) | |
tree | 122c8bb3315a9d0ecce0963c12209e70bb670aa6 /libbb/Config.in | |
parent | e2532ab5f2446ec736b10b24f57a36456deb197f (diff) | |
download | busybox-w32-4c139229611631a3497c224a61107b6b6918e3bf.tar.gz busybox-w32-4c139229611631a3497c224a61107b6b6918e3bf.tar.bz2 busybox-w32-4c139229611631a3497c224a61107b6b6918e3bf.zip |
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 5055015cf..6bbeffb43 100644 --- a/libbb/Config.in +++ b/libbb/Config.in | |||
@@ -110,6 +110,16 @@ config FEATURE_EDITING_FANCY_PROMPT | |||
110 | Setting this option allows for prompts to use things like \w and | 110 | Setting this option allows for prompts to use things like \w and |
111 | \$ and escape codes. | 111 | \$ and escape codes. |
112 | 112 | ||
113 | config FEATURE_COPYBUF_KB | ||
114 | int "Copy buffer size, in kilobytes" | ||
115 | range 1 1024 | ||
116 | default 4 | ||
117 | help | ||
118 | Size of buffer used by cp, mv, install etc. | ||
119 | Buffers which are 4 kb or less will be allocated on stack. | ||
120 | Bigger buffers will be allocated with mmap, with fallback to 4 kb | ||
121 | stack buffer if mmap fails. | ||
122 | |||
113 | config MONOTONIC_SYSCALL | 123 | config MONOTONIC_SYSCALL |
114 | bool "Use clock_gettime(CLOCK_MONOTONIC) syscall" | 124 | bool "Use clock_gettime(CLOCK_MONOTONIC) syscall" |
115 | default y | 125 | default y |