Open vemv opened 6 years ago
(grizzl-make-index '("one" "two" "three" "1asdjasldjasldkjsa")) is revealing: it dumbly builds pairs of (s (length s)) - https://github.com/grizzl/grizzl/blob/master/grizzl.el#L87
(grizzl-make-index '("one" "two" "three" "1asdjasldjasldkjsa"))
(s (length s))
Possibly hange those pairs to have a third element
Fix the sort here https://github.com/grizzl/grizzl/blob/master/grizzl.el#L147 . Note we are passed some opaque numbers from a previous computation; a fix isn't straightforward.
Use https://www.emacswiki.org/emacs/levenshtein.el , but create a issue for using string-distance later (Emacs 27 has new functionstring-distanceimplemented in C. It’s as 10000% fast as Lisp.)
string-distance
Emacs 27 has new function
implemented in C. It’s as 10000% fast as Lisp.
(grizzl-make-index '("one" "two" "three" "1asdjasldjasldkjsa"))
is revealing: it dumbly builds pairs of(s (length s))
- https://github.com/grizzl/grizzl/blob/master/grizzl.el#L87Possibly hange those pairs to have a third element
Fix the sort here https://github.com/grizzl/grizzl/blob/master/grizzl.el#L147 . Note we are passed some opaque numbers from a previous computation; a fix isn't straightforward.
Use https://www.emacswiki.org/emacs/levenshtein.el , but create a issue for using
string-distance
later (Emacs 27 has new function
string-distanceimplemented in C. It’s as 10000% fast as Lisp.
)