]> git.eshelyaron.com Git - emacs.git/commit
Slightly faster hash-table-keys and hash-table-values
authorMattias Engdegård <mattiase@acm.org>
Fri, 17 Jun 2022 17:13:33 +0000 (19:13 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 17 Jun 2022 17:16:52 +0000 (19:16 +0200)
commit4311bd0bd73c17b883d3f88eab4928a44d056a3a
treee04f0694be2278e180cac8db7fcc6721c178a750
parenta203ad5ed0959d60f01f0265c4b658119a0b6858
Slightly faster hash-table-keys and hash-table-values

* lisp/emacs-lisp/subr-x.el (hash-table-keys, hash-table-values):
Omit the reversal of the returned list.  It is not ordered anyway.
* test/lisp/emacs-lisp/subr-x-tests.el
(subr-x--hash-table-keys-and-values): New test.
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el