mirror of
https://github.com/m00natic/vlfi.git
synced 2025-11-10 20:05:34 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc02f25337 | ||
|
|
31b292dc85 |
@@ -60,7 +60,9 @@ but don't change batch size. If t, measure and change."
|
|||||||
(if ram-size
|
(if ram-size
|
||||||
(/ ram-size 20)
|
(/ ram-size 20)
|
||||||
0))
|
0))
|
||||||
large-file-warning-threshold)
|
(if large-file-warning-threshold
|
||||||
|
large-file-warning-threshold
|
||||||
|
0))
|
||||||
"Maximum batch size in bytes when auto tuning.
|
"Maximum batch size in bytes when auto tuning.
|
||||||
Avoid increasing this after opening file with VLF."
|
Avoid increasing this after opening file with VLF."
|
||||||
:group 'vlf :type 'integer)
|
:group 'vlf :type 'integer)
|
||||||
@@ -385,7 +387,7 @@ Optimize over TYPES up to MAX-IDX."
|
|||||||
(defun vlf-tune-batch (types &optional linear file)
|
(defun vlf-tune-batch (types &optional linear file)
|
||||||
"Adjust `vlf-batch-size' to optimal value optimizing on TYPES.
|
"Adjust `vlf-batch-size' to optimal value optimizing on TYPES.
|
||||||
TYPES is alist of elements that may be of form (type coef) or
|
TYPES is alist of elements that may be of form (type coef) or
|
||||||
non list values in which case coeficient is assumed 1.
|
non list values in which case coefficient is assumed 1.
|
||||||
Types can be :insert, :raw, :encode, :write, :hexl or :dehexlify.
|
Types can be :insert, :raw, :encode, :write, :hexl or :dehexlify.
|
||||||
If LINEAR is non nil, use brute-force. In case requested measurement
|
If LINEAR is non nil, use brute-force. In case requested measurement
|
||||||
is missing, stop search and set `vlf-batch-size' to this value.
|
is missing, stop search and set `vlf-batch-size' to this value.
|
||||||
|
|||||||
Reference in New Issue
Block a user