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-4007] Implement Small String optimization #46592

Closed
airspeedswift opened this issue Feb 19, 2017 · 1 comment
Closed

[SR-4007] Implement Small String optimization #46592

airspeedswift opened this issue Feb 19, 2017 · 1 comment
Labels
affects ABI Flag: Affects ABI improvement standard library Area: Standard library umbrella

Comments

@airspeedswift
Copy link
Member

Previous ID SR-4007
Radar rdar://problem/22676306
Original Reporter @airspeedswift
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels Improvement, AffectsABI
Assignee None
Priority Medium

md5: e84cfecb53fd5e3cb78847799da5f04a

Issue Description:

Swift currently does not take advantage of the small string optimization, which would allow storing of a small number of characters directly in the String struct instead of having a pointer to a buffer.

@bob-wilson
Copy link

This is done for Swift 4.2

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects ABI Flag: Affects ABI improvement standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants