You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Task][Performance] Batch namespace snapshot cache updates and invalidation #7645
Reduce repeated list copying, sorting and match-cache invalidation during initial synchronization and reconnect snapshots while preserving configuration semantics.
Current evidence
CommonPluginDataSubscriber.applySelectorDataSnapshot/applyRuleDataSnapshot calls per-item subscribe methods. These reach single-item upserts and invalidation. BaseDataCache already has grouped batch-refresh helpers that merge and sort once per key, so reuse existing machinery where its semantics fit. A snapshot also removes stale namespace entries; existing merge helpers alone are not a replacement for snapshot semantics.
Related historical work: #6796 addressed repeated sorting in cache refresh paths; this issue focuses on namespace snapshot application at the reviewed commit.
Scope and acceptance criteria
Group selector updates per plugin and rule updates per selector; merge/sort once per affected group.
Coalesce appropriate match-cache invalidation without retaining stale positive or negative results.
Activity
fix(plugin-base): harden namespace snapshot against dangling and malf…
perf(plugin-base): batch namespace snapshot cache updates and invalid…