[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44529: [PATCH] Convert apropos-internal from C to Lisp
From: |
Stefan Kangas |
Subject: |
bug#44529: [PATCH] Convert apropos-internal from C to Lisp |
Date: |
Mon, 9 Nov 2020 02:38:59 -0800 |
Severity: wishlist
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I discovered that apropos-internal is defined in keymap.c for a reason
> that escapes me (it really should be moved to apropos.el).
Yes. So I was actually going to propose the attached patch. In my
testing, it is as fast as the C version (especially when byte-compiled),
which would match my intuition from reading the code.
(benchmark-run 10
(apropos-command "test"))
=> (0.12032415399999999 2 0.014772391999999995) ; C
=> (0.13513192100000002 2 0.017216643000000004) ; Lisp
(benchmark-run 10
(apropos "x"))
=> (3.846117816 131 1.092690677) ; C
=> (4.218219444 145 1.2153865740000003) ; Lisp
Any comments or objections?
0001-Convert-apropos-internal-from-C-to-Lisp.patch
Description: Text Data
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp,
Stefan Kangas <=
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Monnier, 2020/11/09
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Eli Zaretskii, 2020/11/09
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Kangas, 2020/11/09
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Eli Zaretskii, 2020/11/09
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Monnier, 2020/11/10
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Eli Zaretskii, 2020/11/10
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Monnier, 2020/11/10
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Eli Zaretskii, 2020/11/10
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Kangas, 2020/11/15
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Eli Zaretskii, 2020/11/16