mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-18 03:55:31 +00:00
Fix vlf-tune-optimal-load in case best value prunes slower times leaving
all-less flag on.
This commit is contained in:
parent
199209fe15
commit
d9cc6fb65e
22
vlf-tune.el
22
vlf-tune.el
@ -389,16 +389,18 @@ confine search to this region."
|
||||
(let ((time-diff (vlf-tune-score types idx t
|
||||
(+ vlf-tune-load-time
|
||||
best-time-diff))))
|
||||
(when time-diff
|
||||
(setq time-diff (if (< vlf-tune-load-time time-diff)
|
||||
(progn (setq all-less nil)
|
||||
(- time-diff
|
||||
vlf-tune-load-time))
|
||||
(setq all-more nil)
|
||||
(- vlf-tune-load-time time-diff)))
|
||||
(if (< time-diff best-time-diff)
|
||||
(setq best-idx idx
|
||||
best-time-diff time-diff))))
|
||||
(if time-diff
|
||||
(progn
|
||||
(setq time-diff (if (< vlf-tune-load-time time-diff)
|
||||
(progn (setq all-less nil)
|
||||
(- time-diff
|
||||
vlf-tune-load-time))
|
||||
(setq all-more nil)
|
||||
(- vlf-tune-load-time time-diff)))
|
||||
(if (< time-diff best-time-diff)
|
||||
(setq best-idx idx
|
||||
best-time-diff time-diff)))
|
||||
(setq all-less nil)))
|
||||
(setq idx (1+ idx)))
|
||||
(* vlf-tune-step (1+ (cond ((or (zerop best-time-diff)
|
||||
(eq all-less all-more))
|
||||
|
Loading…
Reference in New Issue
Block a user