1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-11-06 18:11:37 +00:00

2 Commits

Author SHA1 Message Date
Damien Cassou
cc02f25337 Fix typos
Typos found with codespell.
2019-11-27 00:50:22 +02:00
Troy Hinckley
31b292dc85 fixed large-file-warning-threshold error 2018-02-02 00:54:59 +02:00

View File

@@ -60,7 +60,9 @@ but don't change batch size. If t, measure and change."
(if ram-size
(/ ram-size 20)
0))
large-file-warning-threshold)
(if large-file-warning-threshold
large-file-warning-threshold
0))
"Maximum batch size in bytes when auto tuning.
Avoid increasing this after opening file with VLF."
:group 'vlf :type 'integer)
@@ -385,7 +387,7 @@ Optimize over TYPES up to MAX-IDX."
(defun vlf-tune-batch (types &optional linear file)
"Adjust `vlf-batch-size' to optimal value optimizing on TYPES.
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.
If LINEAR is non nil, use brute-force. In case requested measurement
is missing, stop search and set `vlf-batch-size' to this value.