Skip to content

tor-cell: Avoid redundant allocation

Clara Engler requested to merge cve/arti:no_redundant_allocation into main

This commit changes the way how a vector with a known sized gets allocated, by using Vec::with_capacity() instead of Vec::new(). It will eventually avoid an allocation of more memory than required.

Merge request reports

Loading