8000 Explore potential CLDR locale data byte savings by omitting trailing undefined values · Issue #42315 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

Explore potential CLDR locale data byte savings by omitting trailing undefined values #42315

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

Ope 8000 n
devversion opened this issue May 25, 2021 · 0 comments
Assignees
Labels
area: build & ci Related the build and CI infrastructure of the project area: common Issues related to APIs in the @angular/common package P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone

Comments

@devversion
Copy link
Member

As noted by @petebacondarwin in #42230 (comment). Mostly for tracking

In the CLDR locale data we often output data as followed: [a, b, undefined, undefined]. This is basically the same as [a, b] - as long as we don't care about the length of the array.

We might be able to further improve this by trimming any trailing undefined values from the locale array.

It's unclear whether this could land in a minor/patch, or whether we should wait for a major. If experiments show that we can do this optimization, then we could figure out where to land it. I assume a major is more suitable in case users rely on the locale data length (for unknown reasons?)

@devversion devversion added area: build & ci Related the build and CI infrastructure of the project area: common Issues related to APIs in the @angular/common package labels May 25, 2021
@ngbot ngbot bot added this to the needsTriage milestone May 25, 2021
@devversion devversion self-assigned this May 25, 2021
@ngbot ngbot bot added this to the needsTriage milestone May 25, 2021
@devversion devversion changed the title Explore additional CLDR locale data byte savings Explore potential CLDR locale data byte savings by omitting trailing undefined values May 25, 2021
@alxhub alxhub added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Nov 16, 2022
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build & ci Related the build and CI infrastructure of the project area: common Issues related to APIs in the @angular/common package P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

2 participants
0