Commit af5ea94
committed
Use
It's slightly faster. On a huge file, old:
```
Benchmark 1: target/release/counts big2 > /dev/null
Time (mean ± σ): 942.4 ms ± 21.1 ms [User: 884.6 ms, System: 57.7 ms]
Range (min … max): 917.7 ms … 971.3 ms 10 runs
```
and new:
```
Benchmark 1: target/release/counts big2 > /dev/null
Time (mean ± σ): 932.6 ms ± 14.2 ms [User: 874.2 ms, System: 58.4 ms]
Range (min … max): 902.8 ms … 952.0 ms 10 runs
```into_iter instead of iter.1 parent 34ddb11 commit af5ea94
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments