[Debugger] Reuse singleton no-op symbol uploader#8570
[Debugger] Reuse singleton no-op symbol uploader#8570dudikeleti wants to merge 2 commits intomasterfrom
Conversation
BenchmarksBenchmark execution time: 2026-05-06 15:38:31 Comparing candidate commit 3e6ea3c in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 60 known flaky benchmarks, 27 flaky benchmarks without significant changes.
|
NoOpSymbolUploader has no state and was being allocated up to twice per bootstrap (when symbol DB upload is disabled or third-party modules fail to load). Expose a static Instance and use it instead of new(). Co-authored-by: Cursor <cursoragent@cursor.com>
809acb0 to
3e6ea3c
Compare
Summary of changes
NoOpSymbolUploader.Instance.SymbolsUploader.Createwhen symbol database upload is disabled or third-party module loading failed.Reason for change
NoOpSymbolUploaderis stateless, so callers do not need distinct instances for disabled symbol upload paths.Implementation details
internal static readonlyand only exposes the existing no-op behavior:StartFlushingAsync()returnsTask.CompletedTask, andDispose()does nothing.Test coverage