mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 01:35:22 -04:00
c21132b4953274168ec879a882b1fad9eeadaf14
Avoids a call to Clone of the element by using the provided instance as the one inserted last. A similar optimization is used in the standard library. Also changes the iteration to an independent iterator as the number of insert elements must be known in advance.
Description
Languages
Rust
99.5%
Python
0.3%
Shell
0.2%