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

Type-Parameterize Core.Box #53308

Closed
wants to merge 1 commit into from
Closed

Type-Parameterize Core.Box #53308

wants to merge 1 commit into from

Conversation

uniment
Copy link

@uniment uniment commented Feb 12, 2024

There are performance optimizations that do not occur when Box accesses are typeasserted, which instead require the Box to be type-parameterized (example). The first step will be to parameterize Core.Box, and then other improvements can be made.

By this edit, type parameterization must be performed explicitly; otherwise behavior is the same as before (e.g. Box(1) is a Box{Any}(1); call Box{Int}(1) to construct a Box{Int}).

Necessary for future updates to improve type stability
@uniment uniment closed this Feb 13, 2024
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.

None yet

1 participant