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-7594] [String] Restore invariant that string storage is not small #50136

Open
milseman mannequin opened this issue May 3, 2018 · 0 comments
Open

[SR-7594] [String] Restore invariant that string storage is not small #50136

milseman mannequin opened this issue May 3, 2018 · 0 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@milseman
Copy link
Mannequin

milseman mannequin commented May 3, 2018

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

md5: 0ef688faa7a779fa58601eedf10ff9a7

Issue Description:

In #16320 we had to drop the invariant that we never allocate storage for small strings. We can restore that if all mutating operations (e.g. append) properly detect small-string opportunities involving small lazily-bridged Cocoa strings.

@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