Skip to content

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

Closed

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

Activity

  1. added
    area: build & ci
    area: common
    on May 25, 2021
  2. added this to the needsTriage milestone on May 25, 2021
  3. self-assigned this
    on May 25, 2021
  4. added this to the needsTriage milestone on May 25, 2021
  5. changed the title [-]Explore additional CLDR locale data byte savings[/-] [+]Explore potential CLDR locale data byte savings by omitting trailing undefined values[/+] on May 25, 2021
  6. added
    P3
    on Nov 16, 2022
  7. modified the milestones: needsTriage, Backlog on Nov 16, 2022
  8. added 4 commits that reference this issue on Sep 1, 2025
    2cbb03d
    b23e8d4
    6a79916
    a445cfe
  9. added a commit that references this issue on Sep 17, 2025
    b858c79
  10. added a commit that references this issue on Sep 17, 2025
    423cc17
  11. added a commit that references this issue on Sep 17, 2025
    e523384
  12. added a commit that references this issue on Sep 18, 2025
    3b2c5f9
  13. angular-automatic-lock-bot commented on Oct 18, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  14. locked and limited conversation to collaborators on Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: build & ciarea: common

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions