crate-crypto / rust-verkle

Apache License 2.0
119 stars 41 forks source link

perf: avoid unnecessary (re)allocations in path expansion #92

Closed rkrasiuk closed 6 months ago

rkrasiuk commented 6 months ago

Description

Avoid unnecessary subsequent reallocations and expanded parent path, only allocate on demand. Avoid cloning vec arguments passed to the function.

kevaundray commented 6 months ago

Can merge once clippy fixes are fixed!

rkrasiuk commented 6 months ago

@kevaundray should be fixed now!