Review Mojo's priorities
What is your request?
For reference: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.append
The overload would memmove like the var version, but not deallocate other but rather set its len to 0 and preserve the capacity.
Most of the existing infra could be shared in a private method.
What is your motivation for this change?
Reusing old allocations is a common optimzation known in Rust and C++.
Any other details?
No response
Review Mojo's priorities
What is your request?
For reference: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.append
The overload would memmove like the var version, but not deallocate
otherbut rather set its len to 0 and preserve the capacity.Most of the existing infra could be shared in a private method.
What is your motivation for this change?
Reusing old allocations is a common optimzation known in Rust and C++.
Any other details?
No response