diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 21:53:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 21:53:19 +0300 |
| commit | b471ee866e77cd2561b95402155e925ebf7c8946 (patch) | |
| tree | 2f904cde80afb37b453ad5552e8a7d2f57687980 /internal/ui/table.go | |
| parent | 61925163f0a2f2a96a1b96be3dc8f1c258926c97 (diff) | |
Task 5: pre-allocate searchRegexCache
Diffstat (limited to 'internal/ui/table.go')
| -rw-r--r-- | internal/ui/table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go index 464b29f..03c4774 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -25,7 +25,7 @@ var priorityOptions = []string{"H", "M", "L", ""} var ( urlRegex = regexp.MustCompile(`https?://\S+`) - searchRegexCache = make(map[string]*regexp.Regexp) + searchRegexCache = make(map[string]*regexp.Regexp, 16) ) type cellMatch struct { |
