Skip to content

TypeFlags outside small integer range #28354

Closed

Description

In #25886 two extra TypeFlags were introduced and we're now using 32 bits. That's bad! Anything beyond the lower 30 bits (1 << 29) causes numbers to be boxed and positively wreaks havoc on performance. We know this first hand from previous overflows. We need to bring TypeFlags back down to 30 bits ASAP, and certainly before we ship the next RC or release. I'm surprised we merged the PR with this known issue (e.g. see here).

Activity

  1. ahejlsberg commented on Nov 6, 2018

    @ahejlsberg
    MemberAuthor

    Sheetal Nandi (@sheetalkamat) I'm already working on a fix for this.

  2. sheetalkamat commented on Nov 6, 2018

    @sheetalkamat
    Member

    Ok thank you.

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions