mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
This function showed up as a top producer of allocations (around 10% of all allocations). Allocating the vector once upfront and using `collect_into_vec` removes any intermediate allocations. This approach is also recommended by the rayon documentation: https://docs.rs/rayon/1.10.0/rayon/iter/trait.ParallelIterator.html#method.collect Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> |
||
---|---|---|
.. | ||
inline | ||
construct.rs | ||
float.rs | ||
mod.rs | ||
root.rs |