|
From: | Ludovic Courtès |
Subject: | [bug#39258] [PATCH 2/4] ui: Use string matching with literal search strings. |
Date: | Tue, 09 Jun 2020 10:33:04 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Arun Isaac <arunisaac@systemreboot.net> 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’.
[Prev in Thread] | Current Thread | [Next in Thread] |