Repository navigation
Commit 5c8b1f5
fixup! feat:
The remark of `IndexedList.rev` and the comment in its body said that the function is about 2.5
times faster than `ImmutableList.Reverse` at 100 000 elements, with the same allocation. Measured
against the 1.0.0 `reverse`, which calls `Reverse`, at 100 000 integers (Release, .NET 10, the
median of 15 rounds), `rev` takes about 3 ms and `Reverse` about 23 ms, and `rev` allocates the copy
of the elements in addition (5.2 MB against 4.8 MB). Only the remark and the comment change.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>IndexedList and IIndexedList modules with the vocabulary of the FSharp.Core List module1 parent c0a7b72 commit 5c8b1f5
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
632 | | - | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
1227 | | - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1228 | 1229 | | |
1229 | 1230 | | |
1230 | 1231 | | |
| |||
0 commit comments