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

@devversion

Description

@devversion

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?)

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: build & ciRelated the build and CI infrastructure of the projectarea: commonIssues related to APIs in the @angular/common package

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0