Subject: Re: bug#44529: [PATCH] Convert apropos-internal from C to Lisp

From: Eli Zaretskii <[email-masked]>
Date: Mon, 16 Nov 2020 19:52:46 +0200

> From: Stefan Kangas <[email-masked]>
> Date: Sun, 15 Nov 2020 17:07:14 -0800
> Cc: [email-masked]
> 
> 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"?