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

experiment(serde_v8): derive_more enabled opaque wrappers #14096

Merged
merged 6 commits into from
Apr 2, 2022

Conversation

AaronO
Copy link
Contributor

@AaronO AaronO commented Mar 23, 2022

Experiment using derive_more to help generate magic-type wrappers with mostly opaque-ish internal types, so we can swap out Vec for SmallVec for ByteStrings. Creating them via Into/From rather than explicitly wrapping their internal type.

(Note that's just as efficient, SmallVecs can be created from Vec's with no copying, it simply transfers ownership of the buffer on the heap)

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM!

@AaronO AaronO merged commit 94885bc into denoland:main Apr 2, 2022
@AaronO AaronO deleted the experiment/serde-v8-derive-wrappers branch April 2, 2022 12:37
hardfist pushed a commit to hardfist/deno that referenced this pull request Aug 7, 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

3 participants