You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If we pass an variable Vec<u8> we must re-allocate this key if the capacity of this vector is less than the sum length of user_key and epoch.
In most where we must convert slice to Vec and then pass it to key_with_epoch, and it means that we would allocate memory twice.
Describe the solution you'd like
It is better to pass a slice and allocate the whole key in method key_with_epoch.
Is your feature request related to a problem? Please describe.
If we pass an variable
Vec<u8>
we must re-allocate this key if the capacity of this vector is less than the sum length ofuser_key
and epoch.In most where we must convert slice to
Vec
and then pass it tokey_with_epoch
, and it means that we would allocate memory twice.Describe the solution you'd like
It is better to pass a slice and allocate the whole key in method
key_with_epoch
.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: