Commit 24d8cb4
perf: avoid array allocation in HighlightService.CreateStyledLine loop
Replaced `SelectMany(x => new int[] { ... })` with `Select(x => ...).Concat(Select(x => ...))`
to eliminate per-item array allocations in the highlight processing loop.
This reduces GC pressure and improves performance for log lines with many highlights.
Co-authored-by: xm-i <6365453+xm-i@users.noreply.github.com>1 parent 68710e8 commit 24d8cb4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments