Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why does reusing a buffer with buf.clear() in a loop help performance?
A
clear() keeps the allocated capacity, so later pushes don't allocate again
B
clear() frees the memory
C
It zeroes memory faster
D
It makes the buffer static