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-10534] [String] Efficient embedded UCD, rather than from ICU #52934

Closed
milseman mannequin opened this issue Apr 22, 2019 · 2 comments
Closed

[SR-10534] [String] Efficient embedded UCD, rather than from ICU #52934

milseman mannequin opened this issue Apr 22, 2019 · 2 comments
Assignees
Labels
standard library Area: Standard library umbrella

Comments

@milseman
Copy link
Mannequin

milseman mannequin commented Apr 22, 2019

Previous ID SR-10534
Radar rdar://problem/52904654
Original Reporter @milseman
Type Sub-task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Sub-task
Assignee @Azoy
Priority Medium

md5: 417b682221b060a992e2a9ac4d715a56

Parent-Task:

Issue Description:

As mentioned in https://forums.swift.org/t/icu-usage-in-swift/20473/7,

ICU includes a copy of the UCD and similar data. Accessing this is necessary to implement any of the other functionality ICU provides us as well as answer some APIs such as Unicode.Scalar.Properties, capitalization, etc. Accessing this data through ICU is typically too expensive for us to do in a hot-loop implementing one of the below algorithms, but is fine for public API.

This data is large and changes with every version of Unicode. Bundling this data in the standard library would require:

1. We prune out data we don't use
2. Find or invent a compact binary representation and lazy expansion mechanism
3. Vigilantly keep them up to date, tying versions of the standard library to specific Unicode versions.

@milseman
Copy link
Mannequin Author

milseman mannequin commented Jul 10, 2019

@swift-ci create

@Azoy
Copy link
Member

Azoy commented Nov 30, 2021

This has been resolved here: #39597 and here: #40233

@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
standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant