Skip to content

Commit 94f0002

Browse files
committed
add HTML anchor
1 parent a6744a7 commit 94f0002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/AAAA-stdlib-span-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ extension Foundation.Data {
207207
}
208208
```
209209

210-
#### Performance of the `storage` and `bytes` properties
210+
#### <a name="performance"></a>Performance
211211

212212
The `storage` and `bytes` properties should be performant and return their `Span` or `RawSpan` with very little work, in O(1) time. This is the case for all native standard library types. There is a performance wrinkle for bridged `Array` and `String` instances on Darwin-based platforms, where they can be bridged to Objective-C types that do not guarantee contiguous storage. In such cases the implementation will eagerly copy the underlying data to the native Swift form, and return a `Span` or `RawSpan` pointing to that copy.
213213

0 commit comments

Comments
 (0)