Skip to content

Fixes for associated types of Data #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2016
Merged

Conversation

gribozavr
Copy link
Contributor

@gribozavr gribozavr commented Sep 18, 2016

  • Set Foundation.Data.SubSequence to be RangeReplaceable

    RangeReplaceableCollection.SubSequence should be a RangeReplaceableCollection. Data implements RangeReplaceableCollection, but sets SubSequence to MutableRandomAccessSlice that is not a RangeReplaceableCollection.

    This commit changes Foundation.Data.SubSequence to MutableRangeReplaceableRandomAccessSlice.

    Fixes rdar://problem/28330713.

  • Change Data.Indices to be a CountableRange, that is much faster than the default.

RangeReplaceableCollection.SubSequence should be a
RangeReplaceableCollection.  Data implements RangeReplaceableCollection,
but sets SubSequence to MutableRandomAccessSlice that is not a
RangeReplaceableCollection.

This commit changes Foundation.Data.SubSequence to
MutableRangeReplaceableRandomAccessSlice.

Fixes rdar://problem/28330713.
@dabrahams dabrahams merged commit 1924941 into master Sep 19, 2016
@gribozavr gribozavr deleted the data-associated-type-fixes branch September 19, 2016 03:58
@dabrahams dabrahams restored the data-associated-type-fixes branch September 29, 2016 01:23
@dabrahams dabrahams deleted the data-associated-type-fixes branch September 29, 2016 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants