[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx aba36b564e 139/182: Rename flx-get-matches-worker
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx aba36b564e 139/182: Rename flx-get-matches-worker |
Date: |
Tue, 13 Dec 2022 03:59:37 -0500 (EST) |
branch: elpa/flx
commit aba36b564ed2bc77d443ced0424bf5c510f2b40c
Author: PythonNut <PythonNut@users.noreply.github.com>
Commit: PythonNut <PythonNut@users.noreply.github.com>
Rename flx-get-matches-worker
---
flx.el | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/flx.el b/flx.el
index 4b2a783a23..4a2c15fbaa 100644
--- a/flx.el
+++ b/flx.el
@@ -245,13 +245,13 @@ See documentation for logic."
(puthash str res cache))
res))))
-(defun flx-get-matches-worker (greater-than
- q-index
- query-length
- heatmap
- match-cache
- str-info
- query)
+(defun flx-find-best-match (greater-than
+ q-index
+ query-length
+ heatmap
+ match-cache
+ str-info
+ query)
(let* ((hash-key (+ q-index
(* (or greater-than 0)
query-length)))
@@ -273,12 +273,12 @@ See documentation for logic."
(cons (aref heatmap index) 0)))
indexes))
(dolist (index indexes)
- (dolist (elem (flx-get-matches-worker index (1+ q-index)
- query-length
- heatmap
- match-cache
- str-info
- query))
+ (dolist (elem (flx-find-best-match index (1+ q-index)
+ query-length
+ heatmap
+ match-cache
+ str-info
+ query))
(setq score (if (= (1- (caar elem)) index)
(+ (cadr elem)
(aref heatmap index)
@@ -313,16 +313,16 @@ See documentation for logic."
(heatmap (gethash 'heatmap str-info))
(query-length (length query))
(full-match-boost (and (< 1 query-length)
- (< query-length 5)))
+ (< query-length 5)))
;; Dynamic Programming table
(match-cache (make-hash-table :test 'eql :size 10))
- (res (flx-get-matches-worker nil 0
- query-length
- heatmap
- match-cache
- str-info
- query)))
+ (res (flx-find-best-match nil 0
+ query-length
+ heatmap
+ match-cache
+ str-info
+ query)))
;; postprocess candidate
(and res
(cons (if (and full-match-boost
- [nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/fix61, (continued)
- [nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/fix61, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5fe7f8a94a 121/182: Add algorithmic optimizations, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b9c2d42b67 122/182: Remove deprecated tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 41842ff7b3 123/182: Small performance tweaks, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c8a17f199 127/182: cadar -> cl-cadar, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx ba2a503873 128/182: use Cask to manage deps, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 279179b5af 133/182: travis show pwd, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 321efc25da 132/182: fix Makefile circular dependency, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 4d625bdfb9 135/182: Test score before building possible match, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a9f26b2840 138/182: Fix caching of nil, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx aba36b564e 139/182: Rename flx-get-matches-worker,
ELPA Syncer <=
- [nongnu] elpa/flx 20e3fe8595 141/182: Make flx word separators customizable, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 8959c45907 147/182: Bump version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 20e3073352 148/182: Merge pull request #78 from lewang/0.6, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx dd4b4d50da 149/182: Hotfix: Raise recursion limits dynamically, fixes #79, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 77e82ddd21 150/182: Move definition of flx-ido-mode to appease byte-compiler, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7fce6a4cdb 153/182: Bump version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx d633b6e14a 157/182: Set custom type of options, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c5cb5de02 158/182: Merge pull request #95 from emacsjanitors/silencio, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7017d8416b 163/182: Add LICENSE file., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e5c0680ebf 165/182: Add badges to README., ELPA Syncer, 2022/12/13