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

Use ArrayVec in Encode implementations #11349

Open
DaniPopes opened this issue Sep 30, 2024 · 0 comments
Open

Use ArrayVec in Encode implementations #11349

DaniPopes opened this issue Sep 30, 2024 · 0 comments
Labels
C-perf A change motivated by improving speed, memory usage or disk footprint S-blocked This cannot more forward until something else changes

Comments

@DaniPopes
Copy link
Member

DaniPopes commented Sep 30, 2024

Describe the feature

Some types like StoredNibblesSubKey have a maximum fixed size, which can benefit from using ArrayVec<u8, N> to avoid using heap memory. However, BufMut must be implemented for it, which requires a wrapper struct like ArrayVecCompat<T, const N: usize> which implements BufMut like for vec.

Blocked on #11351 since we may use our own trait

Additional context

No response

@DaniPopes DaniPopes added C-perf A change motivated by improving speed, memory usage or disk footprint S-blocked This cannot more forward until something else changes labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-perf A change motivated by improving speed, memory usage or disk footprint S-blocked This cannot more forward until something else changes
Projects
Status: Todo
Development

No branches or pull requests

1 participant