[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reach
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reachable-p): Rework for small speed gain. |
Date: |
Thu, 9 Mar 2023 10:58:38 -0500 (EST) |
branch: externals/beardbolt
commit 2633e20e667ea7a9f1ff25a8684049657e33167a
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
* beardbolt.el (bb--reachable-p): Rework for small speed gain.
---
beardbolt.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/beardbolt.el b/beardbolt.el
index 154276dd52..a04b3d42ac 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -393,22 +393,22 @@ Returns a list (SPEC ...) where SPEC looks like (WHAT FN
CMD)."
:kill))))
(cl-defun bb--reachable-p (label globals graph synonyms weaks)
- (cond ((and (not (buffer-local-value 'bb-preserve-library-functions
- bb--source-buffer))
- (gethash label weaks))
- nil)
- ((gethash label globals) t)
- (t
- (maphash (lambda (from to)
- (let ((synonym (gethash label synonyms)))
+ (let ((synonym (gethash label synonyms)))
+ (cond ((and (not (buffer-local-value 'bb-preserve-library-functions
+ bb--source-buffer))
+ (gethash label weaks))
+ nil)
+ ((gethash label globals) t)
+ (t
+ (maphash (lambda (from to)
(when (and (or (gethash label to)
(and synonym (gethash synonym to)))
(bb--reachable-p from globals graph synonyms
weaks))
(cl-return-from bb--reachable-p
(progn
(when synonym (puthash synonym t globals))
- (puthash label t globals))))))
- graph))))
+ (puthash label t globals)))))
+ graph)))))
(defun bb--process-asm ()
(let ((globals (make-hash-table :test #'equal))
- [elpa] externals/beardbolt a5614c56d7 113/323: Merge branch 'pony', (continued)
- [elpa] externals/beardbolt a5614c56d7 113/323: Merge branch 'pony', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b348482d7f 091/323: Switch to imgur for image links, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d187b8b189 125/323: Optimize guide display when many line blocks found, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt de28f7903a 232/323: Merge branch 'fix-kill-buffer-error' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3fe322e573 242/323: Merge branch 'improve-auto-compilation' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 194e7ea9dc 253/323: Dumb rename rmsbolt->bearbold, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3870c30bbd 257/323: Move test/*test.el to beardbolt-tests.el, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 98f766bdfc 270/323: Add a README.md, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 28fc329861 262/323: Rework bb-compile a bit, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f491a6adb2 278/323: Rework to use write-region, use a little less memory, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reachable-p): Rework for small speed gain.,
ELPA Syncer <=
- [elpa] externals/beardbolt 60fa7a3c05 280/323: Force asm output to be of a certain format, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b2dc0eb81d 284/323: Make beardbolt-disassemble work again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 730ea84796 290/323: bb-compile-delay can be nil, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2c798336b8 292/323: Tweak README.md, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c05a0be490 297/323: Add useful beardbolt-preserve-library-functions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 26c0b918e4 301/323: Tweak README.md again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e1e69080b7 303/323: Rename "output buffer" -> "asm buffer", ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt dbafc4a88c 304/323: Minor cleanup, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 68469cfb57 306/323: More misc minor rework to simplify code, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 02a0bfbcdb 313/323: Add `beardbolt-ccj-extra-flags` option, ELPA Syncer, 2023/03/09