UMRBP.initializeMemory<T,S>(as type: T.Type, from source: S) takes a Sequence and and initializes an UMRBP element-by-element (see here). Note that the closest equivalent function on UnsafeMutableRawPointer is the most likely way to add a fast-path for this, by using withContiguousStorageIfAvailable on source.
Adding a fast path may require adding an overload.
The text was updated successfully, but these errors were encountered:
glessard commentedJul 27, 2021
Additional Detail from JIRA
md5: 604b61efa14e93fd1f56dd2bcf00a48f
Issue Description:
UMRBP.initializeMemory<T,S>(as type: T.Type, from source: S)
takes a Sequence and and initializes an UMRBP element-by-element (see here). Note that the closest equivalent function onUnsafeMutableRawPointer
is the most likely way to add a fast-path for this, by usingwithContiguousStorageIfAvailable
onsource
.Adding a fast path may require adding an overload.
The text was updated successfully, but these errors were encountered: