Skip to content
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

[SR-2081] String views should have ASCII optimizations #44689

Open
lilyball mannequin opened this issue Jul 14, 2016 · 0 comments
Open

[SR-2081] String views should have ASCII optimizations #44689

lilyball mannequin opened this issue Jul 14, 2016 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@lilyball
Copy link
Mannequin

lilyball mannequin commented Jul 14, 2016

Previous ID SR-2081
Radar None
Original Reporter @lilyball
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 50c1ffaa7b1cc22ddafb68fe29aa720c

relates to:

Issue Description:

String.UTF8View and String.UnicodeScalarView should optimize their count properties and Index manipulations to be O(1) if the _StringCore contains ASCII.

String.CharacterView can't be optimized because "\r\n" is a single grapheme cluster, and I think String.UTF16View already has relevant optimizations.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

0 participants