about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-16 19:13:52 +0000
committerbors <bors@rust-lang.org>2017-04-16 19:13:52 +0000
commit7627e3d31dd641ae9042675e9032857f58d0c5d1 (patch)
treea9e6a160ae903447feee5c907ac67b1f2281750e /src/test/run-pass/thinlto
parent9af79f52d0ab43e318bdf3aa73d939c4482cc946 (diff)
parentaad2062073f46f28c6d1269463cc6c19df1e0199 (diff)
downloadrust-7627e3d31dd641ae9042675e9032857f58d0c5d1.tar.gz
rust-7627e3d31dd641ae9042675e9032857f58d0c5d1.zip
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.)
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions