rust/src/libcollections
bors 7627e3d31d Auto merge of #40409 - mbrubeck:calloc, r=sfackler
Specialize Vec::from_elem to use calloc

Fixes #38723.  This specializes the implementation for `u8` only, but it could be extended to other zeroable types if desired.

I haven't tested this extensively, but I did verify that it gives the expected performance boost for large `vec![0; n]` allocations with both alloc_system and jemalloc, on Linux.  (I have not tested or even built the Windows code.)
2017-04-16 19:13:52 +00:00
..
benches Implement feature sort_unstable 2017-03-21 20:46:20 +01:00
btree Various consistency and phrasing fixes in std::collections' docs 2017-04-13 22:51:05 +02:00
tests Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
binary_heap.rs std::collections docs: Address issues that came up in PR #41286 2017-04-14 23:36:27 +02:00
borrow.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
enum_set.rs Apply clippy's doc_markdown improvements to libcollections 2017-04-10 05:53:10 +02:00
fmt.rs Rollup merge of #40241 - Sawyer47:fix-39997, r=alexcrichton 2017-03-19 20:51:06 -04:00
lib.rs Auto merge of #40409 - mbrubeck:calloc, r=sfackler 2017-04-16 19:13:52 +00:00
linked_list.rs Various fixes throughout std::collections' docs 2017-04-13 22:51:05 +02:00
macros.rs Panic on errors in format! or <T: Display>::to_string 2017-03-01 23:47:59 +01:00
range.rs Apply clippy's doc_markdown improvements to libcollections 2017-04-10 05:53:10 +02:00
slice.rs Auto merge of #41009 - scottmcm:toowned-clone-into, r=alexcrichton 2017-04-13 06:46:29 +00:00
str.rs Auto merge of #41009 - scottmcm:toowned-clone-into, r=alexcrichton 2017-04-13 06:46:29 +00:00
string.rs Reduce str transmutes, add mut versions of methods. 2017-04-09 19:13:54 -04:00
vec.rs Specialize Vec::from_elem for other numeric types 2017-04-15 09:01:56 -07:00
vec_deque.rs Various consistency and phrasing fixes in std::collections' docs 2017-04-13 22:51:05 +02:00