mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 02:00:47 +00:00
Don't measure encoding of too small region when adjusting chunk start
and fix passing of elements to tune in vlf-occur.
This commit is contained in:
parent
d67825c4cd
commit
0d9cc8e488
@ -308,8 +308,10 @@ Return number of bytes moved back for proper decoding."
|
|||||||
(not (zerop safe-start)))
|
(not (zerop safe-start)))
|
||||||
(< shift 3)
|
(< shift 3)
|
||||||
(let ((diff (- chunk-size
|
(let ((diff (- chunk-size
|
||||||
(vlf-tune-encode-length position
|
(length
|
||||||
(point-max)))))
|
(encode-coding-region
|
||||||
|
position (point-max)
|
||||||
|
buffer-file-coding-system t)))))
|
||||||
(if strict
|
(if strict
|
||||||
(not (zerop diff))
|
(not (zerop diff))
|
||||||
(or (< diff -3) (< 0 diff)))))
|
(or (< diff -3) (< 0 diff)))))
|
||||||
|
@ -202,7 +202,7 @@ Prematurely ending indexing will still show what's found so far."
|
|||||||
(time (float-time))
|
(time (float-time))
|
||||||
(tune-types (let ((base '(:insert :encode)))
|
(tune-types (let ((base '(:insert :encode)))
|
||||||
(if is-hexl
|
(if is-hexl
|
||||||
(nconc '(:hexl :dehexlify) base)
|
(append '(:hexl :dehexlify) base)
|
||||||
base)))
|
base)))
|
||||||
(reporter (make-progress-reporter
|
(reporter (make-progress-reporter
|
||||||
(concat "Building index for " regexp "...")
|
(concat "Building index for " regexp "...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user