perf: optimize activation of bundles with no inter-bundle path overlap (#7155)

Fixes: #7144

Signed-off-by: Shiqi Yang <syang482@bloomberg.net>
This commit is contained in:
Shiqi Yang
2025-01-08 08:32:31 -05:00
committed by GitHub
parent 64ebe3588a
commit fb317c5bc4
5 changed files with 264 additions and 2 deletions
+4
View File
@@ -628,6 +628,10 @@ func (p *Plugin) activate(ctx context.Context, name string, b *bundle.Bundle, is
compiler = compiler.WithPathConflictsCheck(storage.NonEmpty(ctx, p.manager.Store, txn)).
WithEnablePrintStatements(p.manager.EnablePrintStatements())
if b.Manifest.Roots != nil {
compiler = compiler.WithPathConflictsCheckRoots(*b.Manifest.Roots)
}
var activateErr error
opts := &bundle.ActivateOpts{