Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Conversation

@zekun000
Copy link
Collaborator

@zekun000 zekun000 commented Oct 2, 2022

Currently a single TypeTag consumes 96 bytes because of the inlined StructTag (88 bytes), it starts to bloat up with nested TypeTag::Vector(TypeTag).

This commit reduces the size from 96 to 16 bytes, it doesn't fully solve the problem but reduces the impact by 6x.

Copy link
Member

@dariorussi dariorussi left a comment

Choose a reason for hiding this comment

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

this is a good change, no question; bloating of enums is always a problem in Rust and the dereference here I believe is marginal. In fact this is likely to make things faster.

Failures look legit and this most likely needs to wait for 526 and so will change again

Copy link
Member

@vgao1996 vgao1996 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants