Commit 9b090d5
Use ValueStringBuilder in AspNetCoreResourceNameHelper on all TFMs
Replace StringBuilderCache fallback with ValueStringBuilder and
stackalloc on all TFMs. AppendAsLowerInvariant lowercases each
segment inline, avoiding the extra string allocation from the
previous .ToLowerInvariant() call on the final result. Add a
string? overload to ValueStringBuilder.AppendAsLowerInvariant to
avoid needing explicit .AsSpan() at each call site.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5812d47 commit 9b090d5
2 files changed
Lines changed: 9 additions & 36 deletions
File tree
- tracer/src/Datadog.Trace
- DiagnosticListeners
- Util
Lines changed: 0 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
| |||
227 | 221 | | |
228 | 222 | | |
229 | 223 | | |
230 | | - | |
231 | 224 | | |
232 | 225 | | |
233 | 226 | | |
234 | 227 | | |
235 | 228 | | |
236 | 229 | | |
237 | 230 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 231 | | |
248 | 232 | | |
249 | 233 | | |
| |||
261 | 245 | | |
262 | 246 | | |
263 | 247 | | |
264 | | - | |
265 | 248 | | |
266 | 249 | | |
267 | 250 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | 251 | | |
273 | 252 | | |
274 | 253 | | |
| |||
367 | 346 | | |
368 | 347 | | |
369 | 348 | | |
370 | | - | |
371 | 349 | | |
372 | 350 | | |
373 | 351 | | |
374 | 352 | | |
375 | 353 | | |
376 | 354 | | |
377 | 355 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | 356 | | |
388 | 357 | | |
389 | 358 | | |
| |||
412 | 381 | | |
413 | 382 | | |
414 | 383 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | 384 | | |
421 | 385 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
0 commit comments