Commit 4e72c55
perf: reduce allocations in appendSection and increase stream copy buffer size
- Replace list-based underline creation with String('-', n) constructor
to eliminate unnecessary list/array allocations in appendSection
- Increase stream copy buffer from 1024 to 81920 bytes (matching .NET
default for Stream.CopyToAsync) to improve download throughput
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6d6b85f commit 4e72c55
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | | - | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
0 commit comments