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

reduce built-in MemBuilders sizes #33

Open
tower120 opened this issue Jul 14, 2023 · 1 comment
Open

reduce built-in MemBuilders sizes #33

tower120 opened this issue Jul 14, 2023 · 1 comment

Comments

@tower120
Copy link
Owner

All built-in MemBuilder implementations can store Layout in compacted form.

@tower120 tower120 changed the title reduce built-in MemBuilders reduce built-in MemBuilders sizes Jul 14, 2023
@tower120
Copy link
Owner Author

tower120 commented Jul 16, 2023

Implemented in https://github.com/tower120/any_vec/tree/CompactLayout branch for HeapMem. Possibly introduce some overhead on into_raw_parts/from_raw_parts due to packing/unpacking Layout. Changing MemRawParts trait API probably would solve this. Or maybe overhead is not observable, benchmark needed.

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

No branches or pull requests

1 participant