Maximizing Rust Vector Efficiency: Why Initial Capacity Tricks Work
You can find the Chinese version at 為什麼你應該幫 Rust Vector 加上初始容量
Introduction
High-level programming languages usually offer growable arrays, like C++ and Rust's Vectors, Go's Slices, or JavaScript's Arrays. These can change in size and offer push and...
larrylu.dev4 min read