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] chore: add <T as BorshSerialize>::ALLOCATION_HINT field #243

Closed
wants to merge 1 commit into from

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Oct 10, 2023

pr is not for merge, just to illustrate a microoptimization

may make sense to override initial vector allocation capacity per type, but that can be done with introducing a constant on BorshSerialize trait

from comment

@dj8yfo dj8yfo closed this Oct 13, 2023
@dj8yfo dj8yfo deleted the vec_alloc_hint branch August 26, 2024 14:25
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.

1 participant