[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44529: [PATCH] Convert apropos-internal from C to Lisp
From: |
Eli Zaretskii |
Subject: |
bug#44529: [PATCH] Convert apropos-internal from C to Lisp |
Date: |
Mon, 16 Nov 2020 19:52:46 +0200 |
> From: Stefan Kangas <stefan@marxist.se>
> Date: Sun, 15 Nov 2020 17:07:14 -0800
> Cc: 44529@debbugs.gnu.org
>
> The attached patch moves it to subr.el instead, as requested.
Thanks.
> This runs insignificantly faster in C, and is already fast enough on
> reasonably modern hardware. We might as well lift it to Lisp.
> This benchmark can be used to verify:
>
> (benchmark-run 10 (apropos-command "test"))
> => (0.12032415399999999 2 0.014772391999999995) ; C
> => (0.13513192100000002 2 0.017216643000000004) ; Lisp
Btw, did you try with less trivial strings? E.g., what happens if you
replace "test" with "set" or "file"?
- 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, 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 <=
- bug#44529: [PATCH] Convert apropos-internal from C to Lisp, Stefan Kangas, 2020/11/24