Skip to content
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

V2: Replace LongType with a boolean #851

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

timostamm
Copy link
Member

@timostamm timostamm commented May 22, 2024

We're using the enum LongType for two states. Replacing it with a boolean gives us a tiny performance boost, a tiny reduction in bundle size, and - most importantly - better DX because it isn't necessary to import anything to use the property. It is unlikely that we'd ever need another state - before BigInt, there were numerous unsuccessful proposals for a 64-bit numeric type.

@timostamm timostamm merged commit 415e526 into v2 May 23, 2024
8 checks passed
@timostamm timostamm deleted the tstamm/replace-longtype-with-bool branch May 23, 2024 11:00
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.

3 participants