Andre Bogus aabaee0a82 bench and optimize from_slice
This adds "bench_from_slice(_vec)(_small)" benches, renaming the previous
versions to "bench_from_iter*" (because they were using `From<&[T]>`, which
calls `FromIterator` internally) and optimizes the `from_slice` constructor
considerably.

Before:
```
test bench_from_slice                  ... bench:          42 ns/iter (+/- 0)
test bench_from_slice_small            ... bench:          12 ns/iter (+/- 0)
```
After:
```
test bench_from_slice                  ... bench:          27 ns/iter (+/- 0)
test bench_from_slice_small            ... bench:           8 ns/iter (+/- 0)
```
2018-08-22 22:14:23 +02:00
2018-08-22 22:14:23 +02:00
2018-08-05 21:01:31 -07:00
2018-08-22 22:14:23 +02:00
2018-06-06 09:19:13 -07:00
2018-06-06 09:19:13 -07:00
2017-11-30 09:12:12 -08:00

rust-smallvec

Documentation

Release notes

"Small vector" optimization for Rust: store up to a small number of items on the stack

S
Description
对于小的vector,存储在栈上以优化性能表现
Readme 1.1 MiB
Languages
Rust 98.8%
Shell 1.2%