[SR-318] LazyCollection.SubSequence.SubSequence introduces multiple levels of Slice wrapping #42940
Labels
affects ABI
Flag: Affects ABI
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
performance
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 71408b048bea80cc8a69d3171d339b8b
Issue Description:
As Kevin Ballard noticed,
Multiple levels of Slice<T> wrapping is bad not just because of the type, but because each Slice has its own index bounds stored, and every access through a Slice needs to perform a range check. So having multiple levels of wrapping would affect performance in this case.
The text was updated successfully, but these errors were encountered: