[SR-9437] Efficient map on potentially-contiguous collections #51901
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: cd6ab5df416d595c9b3c30f278c7e437
Issue Description:
When a Collection is capable of providing `UnsafeBufferPointer<Element>`, we can provide a significantly faster (and smaller in code size) implementation of `map` and other algorithms on top of that, as we can skip indexing/iterator overhead, bounds checks, improve compilation time, etc., all without requiring total inlinability into user code.
For example, see #21104 which provides 2x speedup to MapReduceString.
The text was updated successfully, but these errors were encountered: