Commit 454d339
authored
refactor: use
Replaces `strings.Split` with `strings.SplitSeq` in to iterate over split results without allocating an intermediate slice.
This reduces memory allocations and enables streaming-style processing.
Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>strings.SplitSeq for streaming iteration (#516)1 parent f119b5c commit 454d339
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2270 | 2270 | | |
2271 | 2271 | | |
2272 | 2272 | | |
2273 | | - | |
| 2273 | + | |
2274 | 2274 | | |
2275 | 2275 | | |
2276 | 2276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments