Re: [PATCH] kconfig: add kconfig-sym-check static checker

From: Nathan Chancellor

Date: Sun May 17 2026 - 17:50:12 EST


On Sun, May 17, 2026 at 12:58:32PM +0300, Andy Shevchenko wrote:
> On Sun, May 17, 2026 at 06:11:28PM +0900, Nathan Chancellor wrote:
> > but I
> > am not sure that it is an obvious one in the grand scheme of things.
> >
> > $ hyperfine 'git ls-files "*Kconfig*"' 'find . -name "*Kconfig*"'
>
> Does this makes caches cold before *each* attempt?

No but if I do so via the '--prepare' option, I see a similar
difference.

> > Benchmark 1: git ls-files "*Kconfig*"
> > Time (mean ± σ): 24.6 ms ± 1.0 ms [User: 18.0 ms, System: 6.1 ms]
> > Range (min … max): 20.5 ms … 28.7 ms 120 runs
> >
> > Benchmark 2: find . -name "*Kconfig*"
> > Time (mean ± σ): 222.9 ms ± 4.5 ms [User: 80.6 ms, System: 140.1 ms]
> > Range (min … max): 216.0 ms … 227.6 ms 13 runs
> >
> > Summary
> > git ls-files "*Kconfig*" ran
> > 9.06 ± 0.43 times faster than find . -name "*Kconfig*"
> >
> > But I don't know how complicated such checking is in Perl, so I would be
> > willing to see what it looks like.
>
> 1. Call `git ls-files`,
> 2. if the above fails, call `find`.
> 3. `find` never fails (okay... :-)
>
> In any language it shouldn't be much code.

Yeah, I guess I would look for '.git' before calling 'git ls-files' but
that should work as well. It's up to Andrew.

--
Cheers,
Nathan