Skip to content

ICU-23371 Deduplicate keyOffsets and key32Offsets in Table#3941

Open
gvictor wants to merge 1 commit intounicode-org:mainfrom
gvictor:ICU-23371-dedup-table-offsets
Open

ICU-23371 Deduplicate keyOffsets and key32Offsets in Table#3941
gvictor wants to merge 1 commit intounicode-org:mainfrom
gvictor:ICU-23371-dedup-table-offsets

Conversation

@gvictor
Copy link
Copy Markdown
Collaborator

@gvictor gvictor commented Apr 14, 2026

It saves around 50kB when en-US is used as the default locale, after calling basic APIs, e.g. Number.getInstance()

Checklist

  • Required: Issue filed: ICU-NNNNN
  • Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz"
  • Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz"
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable
  • Approver: Feel free to merge on my behalf

It saves around 50kB when en-US is used as the default locale,
after calling basic APIs, e.g. Number.getInstance()
}
} else if (item instanceof String) {
String s = (String) item;
String existing = stringMap.putIfAbsent(s, s);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Map<String, String> stringMap be a Set<String> stringSet instead?

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