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

Move the two Boxes in MapType to one in BuiltinType #388

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Oct 9, 2023

Description of Changes

Instead of having one Box around the key_ty and one around the (value) ty, we have one around the entire ´MapType. Why? Because both values tend to be accessed together so having one Box is more cache friendly. Moreover, this enables shrinking AlgebraicTypelater on, asBoxis 8 bytes vs. the oldMapType` being 16 bytes.

Extracted from #156.

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Centril Centril merged commit 099d0b8 into master Oct 9, 2023
5 checks passed
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.

2 participants