Skip to content

[Symbol Database] DEBUG-5045 DEBUG-5046 Fix trailing bytes in symbol uploader and performance improvements#8097

Merged
dudikeleti merged 4 commits intomasterfrom
dudik/symdb/perf-and-null-trail-bug
Jan 23, 2026
Merged

[Symbol Database] DEBUG-5045 DEBUG-5046 Fix trailing bytes in symbol uploader and performance improvements#8097
dudikeleti merged 4 commits intomasterfrom
dudik/symdb/perf-and-null-trail-bug

Conversation

@dudikeleti
Copy link
Contributor

Summary of changes

  1. Reduced allocations in the SymbolDB upload path by eliminating per-class JSON string creation and avoiding per-batch Substring/Insert work when assembling the final payload.
  2. Fixed a correctness issue where uploads could include trailing bytes.

Reason for change

Symbol upload happens on assembly load and can be noisy in both allocation rate and CPU. The existing implementation was already solid, but it still created avoidable transient allocations (especially per-class JSON strings) and relied on an expensive buffer clear to prevent trailing byte leakage.

Implementation details

  • Send only the valid payload bytes via ArraySegment(_payload, 0, count) instead of the full buffer and remove the Array.Clear buffer reset since we no longer risk sending stale bytes.

  • Precompute a root JSON prefix/suffix once and build each batch by appending classes between them, avoiding repeated Substring allocations and StringBuilder.Insert(0, ...).

  • Replace JsonConvert.SerializeObject(classScope, ...) with a reusable Newtonsoft JsonSerializer writing into a pooled TextWriter.

  • Introduce Utf8CountingPooledTextWriter to write JSON into a pooled char[] while tracking UTF-8 byte count.

Test coverage

Added a regression test to ensure we do not send trailing \0 bytes when reusing the internal payload buffer across uploads.
Existing SymbolDB uploader tests continue to validate batching behavior and payload deserialization.

Follow-ups

Phase 2: introduce a netcore fast-path using Utf8JsonWriter while keeping the Newtonsoft path as the compat baseline.

Future consideration: evolve toward stream-based upload to further reduce large transient buffers and avoid creating the final payload string altogether.

@dudikeleti dudikeleti requested a review from a team as a code owner January 23, 2026 11:59
@dudikeleti dudikeleti requested a review from Copilot January 23, 2026 11:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the SymbolDB upload path by reducing allocations and fixing a bug where trailing null bytes could be included in uploads when reusing the internal payload buffer.

Changes:

  • Fixed trailing byte bug by sending only valid payload bytes via ArraySegment<byte>(_payload, 0, count) instead of the full buffer
  • Reduced allocations by precomputing JSON prefix/suffix once per batch and reusing a pooled TextWriter for class serialization
  • Introduced Utf8CountingPooledTextWriter to write JSON into pooled char arrays while tracking UTF-8 byte counts

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
SymbolsUploader.cs Refactored batch assembly to precompute prefix/suffix, use pooled writer for serialization, and send only valid bytes via ArraySegment
Utf8CountingPooledTextWriter.cs Added new pooled TextWriter implementation that tracks UTF-8 byte count without materializing strings
SymbolUploaderTest.cs Added regression test to verify trailing null bytes are not sent when reusing payload buffer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dudikeleti dudikeleti changed the title Fix a bug in symbol uploader and introduce a pooled utf text writer w… [Symbol Database] DEBUG-5045 Fix trailing bytes in symbol uploader and performance improvements Jan 23, 2026
@dudikeleti dudikeleti changed the title [Symbol Database] DEBUG-5045 Fix trailing bytes in symbol uploader and performance improvements [Symbol Database] DEBUG-5045 DEBUG-5046 Fix trailing bytes in symbol uploader and performance improvements Jan 23, 2026
@dudikeleti dudikeleti requested review from a team as code owners January 23, 2026 16:39
@pr-commenter
Copy link

pr-commenter bot commented Jan 23, 2026

Benchmarks

Benchmark execution time: 2026-01-23 17:24:18

Comparing candidate commit 2a9b8c6 in PR branch dudik/symdb/perf-and-null-trail-bug with baseline commit a7f09d3 in branch master.

Found 6 performance improvements and 7 performance regressions! Performance is the same for 157 metrics, 22 unstable metrics.

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+80.127ms; +80.285ms] or [+66.308%; +66.439%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟩 execution_time [-23.674ms; -19.665ms] or [-10.762%; -8.940%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 execution_time [+10.877ms; +16.068ms] or [+5.499%; +8.123%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟥 execution_time [+15.734ms; +20.434ms] or [+7.862%; +10.211%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-22.323ms; -15.974ms] or [-10.314%; -7.381%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟩 execution_time [-94.052ms; -78.991ms] or [-48.916%; -41.083%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+18.349ms; +21.902ms] or [+8.977%; +10.715%]
  • 🟥 throughput [-113.901op/s; -96.332op/s] or [-9.700%; -8.204%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟩 throughput [+119.988op/s; +208.545op/s] or [+9.174%; +15.945%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0

  • 🟩 execution_time [-99.591µs; -93.623µs] or [-6.495%; -6.106%]
  • 🟩 throughput [+42.450op/s; +45.269op/s] or [+6.509%; +6.941%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+24.829ms; +27.153ms] or [+14.171%; +15.498%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟥 execution_time [+13.770ms; +18.547ms] or [+6.884%; +9.273%]

@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8097) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration68.21 ± (68.20 - 68.40) ms68.51 ± (68.51 - 68.72) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration72.30 ± (72.22 - 72.46) ms72.44 ± (72.41 - 72.70) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration999.91 ± (1005.41 - 1013.66) ms1007.90 ± (1016.31 - 1027.91) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms21.81 ± (21.77 - 21.84) ms21.87 ± (21.84 - 21.90) ms+0.3%✅⬆️
process.time_to_main_ms78.95 ± (78.80 - 79.09) ms79.23 ± (79.07 - 79.39) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.89) MB10.91 ± (10.91 - 10.92) MB+0.3%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.73 ± (21.71 - 21.75) ms21.84 ± (21.83 - 21.86) ms+0.5%✅⬆️
process.time_to_main_ms80.15 ± (80.07 - 80.23) ms80.18 ± (80.08 - 80.28) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.94 ± (10.94 - 10.95) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms242.35 ± (238.76 - 245.94) ms245.21 ± (241.75 - 248.67) ms+1.2%✅⬆️
process.time_to_main_ms469.08 ± (468.48 - 469.68) ms470.86 ± (470.23 - 471.50) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.32 ± (48.29 - 48.34) MB48.39 ± (48.36 - 48.41) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.8%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.64 ± (20.61 - 20.67) ms20.69 ± (20.66 - 20.71) ms+0.2%✅⬆️
process.time_to_main_ms68.35 ± (68.25 - 68.45) ms68.81 ± (68.71 - 68.90) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.59 ± (10.59 - 10.60) MB10.63 ± (10.63 - 10.63) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.55 ± (20.53 - 20.57) ms20.56 ± (20.53 - 20.58) ms+0.0%✅⬆️
process.time_to_main_ms69.40 ± (69.35 - 69.44) ms69.47 ± (69.41 - 69.54) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.70 ± (10.69 - 10.71) MB10.74 ± (10.73 - 10.76) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms245.14 ± (243.01 - 247.26) ms246.60 ± (244.29 - 248.92) ms+0.6%✅⬆️
process.time_to_main_ms446.94 ± (446.42 - 447.47) ms448.77 ± (448.29 - 449.24) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.12 ± (49.09 - 49.15) MB49.11 ± (49.08 - 49.14) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms18.81 ± (18.78 - 18.85) ms18.91 ± (18.89 - 18.94) ms+0.5%✅⬆️
process.time_to_main_ms67.40 ± (67.30 - 67.50) ms67.66 ± (67.56 - 67.77) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.65 - 7.67) MB7.70 ± (7.69 - 7.71) MB+0.5%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.85 ± (18.82 - 18.87) ms18.83 ± (18.80 - 18.86) ms-0.1%
process.time_to_main_ms68.49 ± (68.43 - 68.55) ms68.67 ± (68.61 - 68.74) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.76) MB7.74 ± (7.73 - 7.75) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms178.72 ± (177.91 - 179.52) ms179.36 ± (178.54 - 180.18) ms+0.4%✅⬆️
process.time_to_main_ms429.67 ± (428.89 - 430.45) ms434.30 ± (433.37 - 435.22) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.55 ± (36.51 - 36.59) MB36.62 ± (36.59 - 36.65) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (26 - 27)-0.3%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration195.39 ± (195.42 - 196.49) ms196.14 ± (196.02 - 196.81) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration197.59 ± (197.61 - 198.21) ms199.49 ± (199.38 - 200.01) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1120.43 ± (1125.44 - 1134.45) ms1137.29 ± (1140.09 - 1149.93) ms+1.5%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms190.18 ± (189.78 - 190.58) ms190.97 ± (190.54 - 191.40) ms+0.4%✅⬆️
process.time_to_main_ms82.31 ± (82.07 - 82.54) ms82.60 ± (82.38 - 82.82) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.08 - 16.13) MB16.10 ± (16.08 - 16.12) MB-0.0%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms188.34 ± (187.92 - 188.76) ms190.15 ± (189.71 - 190.60) ms+1.0%✅⬆️
process.time_to_main_ms83.11 ± (82.95 - 83.28) ms83.69 ± (83.42 - 83.96) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.07 - 16.13) MB16.08 ± (16.06 - 16.10) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.2%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms421.31 ± (417.81 - 424.81) ms433.26 ± (429.95 - 436.57) ms+2.8%✅⬆️
process.time_to_main_ms473.98 ± (473.35 - 474.61) ms481.02 ± (480.10 - 481.94) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.79 ± (58.67 - 58.90) MB58.81 ± (58.68 - 58.93) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.79 ± (192.41 - 193.17) ms196.79 ± (196.30 - 197.27) ms+2.1%✅⬆️
process.time_to_main_ms70.41 ± (70.23 - 70.59) ms71.73 ± (71.50 - 71.96) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.07 - 16.29) MB16.32 ± (16.30 - 16.34) MB+0.9%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.6%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms192.19 ± (191.83 - 192.54) ms192.63 ± (192.31 - 192.95) ms+0.2%✅⬆️
process.time_to_main_ms71.60 ± (71.46 - 71.73) ms72.10 ± (71.92 - 72.27) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.26 ± (16.14 - 16.38) MB16.35 ± (16.29 - 16.42) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.8%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms444.71 ± (441.37 - 448.04) ms444.86 ± (441.74 - 447.98) ms+0.0%✅⬆️
process.time_to_main_ms453.10 ± (452.55 - 453.64) ms455.26 ± (454.56 - 455.96) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.75 ± (58.63 - 58.87) MB58.80 ± (58.67 - 58.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)30 ± (29 - 30)+0.4%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms192.13 ± (191.74 - 192.52) ms191.50 ± (191.08 - 191.92) ms-0.3%
process.time_to_main_ms70.58 ± (70.35 - 70.81) ms70.41 ± (70.17 - 70.65) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.79) MB11.75 ± (11.72 - 11.77) MB-0.2%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms190.74 ± (190.36 - 191.13) ms190.45 ± (190.17 - 190.73) ms-0.2%
process.time_to_main_ms71.19 ± (71.05 - 71.34) ms71.26 ± (71.13 - 71.39) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.83 ± (11.80 - 11.86) MB11.81 ± (11.78 - 11.84) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms368.37 ± (366.83 - 369.91) ms369.32 ± (367.94 - 370.71) ms+0.3%✅⬆️
process.time_to_main_ms438.22 ± (437.56 - 438.87) ms439.79 ± (438.99 - 440.58) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.25 ± (48.21 - 48.28) MB48.22 ± (48.18 - 48.26) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 29)29 ± (29 - 29)+0.7%✅⬆️
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (69ms)  : 67, 70
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (8097) - mean (73ms)  : 71, 74
    master - mean (72ms)  : 71, 73

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (1,022ms)  : 939, 1105
    master - mean (1,010ms)  : 950, 1069

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (106ms)  : 104, 109
    master - mean (106ms)  : 104, 109

    section Bailout
    This PR (8097) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 106, 108

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (743ms)  : 688, 799
    master - mean (738ms)  : 679, 797

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (94ms)  : 92, 97
    master - mean (94ms)  : 91, 96

    section Bailout
    This PR (8097) - mean (95ms)  : 94, 96
    master - mean (95ms)  : 94, 96

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (721ms)  : 684, 758
    master - mean (718ms)  : 684, 753

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (93ms)  : 91, 95
    master - mean (92ms)  : 90, 94

    section Bailout
    This PR (8097) - mean (94ms)  : 92, 95
    master - mean (93ms)  : 92, 95

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (642ms)  : 622, 662
    master - mean (637ms)  : 621, 652

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (196ms)  : 192, 201
    master - mean (196ms)  : 189, 203

    section Bailout
    This PR (8097) - mean (200ms)  : 197, 203
    master - mean (198ms)  : 195, 201

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (1,145ms)  : 1074, 1216
    master - mean (1,130ms)  : 1065, 1195

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (282ms)  : 273, 291
    master - mean (281ms)  : 274, 288

    section Bailout
    This PR (8097) - mean (282ms)  : 274, 291
    master - mean (280ms)  : 275, 286

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (942ms)  : 891, 993
    master - mean (928ms)  : 881, 975

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (277ms)  : 266, 288
    master - mean (272ms)  : 266, 277

    section Bailout
    This PR (8097) - mean (273ms)  : 268, 278
    master - mean (272ms)  : 268, 276

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (933ms)  : 886, 981
    master - mean (928ms)  : 877, 978

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8097) - mean (272ms)  : 264, 280
    master - mean (272ms)  : 266, 279

    section Bailout
    This PR (8097) - mean (271ms)  : 267, 275
    master - mean (272ms)  : 266, 278

    section CallTarget+Inlining+NGEN
    This PR (8097) - mean (841ms)  : 823, 858
    master - mean (838ms)  : 816, 860

Loading

dudikeleti and others added 4 commits January 23, 2026 18:35
Use parameter-specific ArgumentOutOfRangeException (index/count) for easier diagnosis; no behavioral change in the valid-path.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dudikeleti dudikeleti force-pushed the dudik/symdb/perf-and-null-trail-bug branch from 2a9b8c6 to afe4855 Compare January 23, 2026 17:35
@dudikeleti dudikeleti enabled auto-merge (squash) January 23, 2026 17:44
@dudikeleti dudikeleti merged commit cc1099c into master Jan 23, 2026
152 of 153 checks passed
@dudikeleti dudikeleti deleted the dudik/symdb/perf-and-null-trail-bug branch January 23, 2026 19:24
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants