caching the call for GetNamespaceFilter

Introduces a concurrent-safe sync.Map cache to the backup Request struct
to memoize GetNamespaceFilter results. This avoids re-evaluating glob
patterns for every item, significantly improving backup performance while
preserving the original exact-match precedence logic.

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
This commit is contained in:
Adam Zhang
2026-06-15 16:18:54 +08:00
parent 89f18122c2
commit 13f06026c0
3 changed files with 52 additions and 4 deletions
@@ -0,0 +1 @@
Fix issue #9907, add cache for the GetNamespaceFilter call