Subject: Re: [bug#39258] [PATCH 2/4] ui: Use string matching with literal search strings.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 09 Jun 2020 10:33:04 +0200

Arun Isaac <[email-masked]> skribis:

> * guix/scripts/package.scm (process-query): Make search query a regexp only if
> it is not a literal search string.
> * guix/ui.scm (relevance): Use string matching with literal search strings and
> regexp matching with regexp search strings.

How does this affect performance?

I would expect the regexp engine in libc to do something similar
internally, so I wonder if the extra work in Scheme pays off.

Ludo’.