Files
rust/src/liballoc
kennytm 23689cc8e9 Rollup merge of #49496 - glandium:master, r=sfackler
Add more vec![... ; n] optimizations

vec![0; n], via implementations of SpecFromElem, has an optimization that uses with_capacity_zeroed instead of with_capacity, which will use calloc instead of malloc, and avoid an extra memset.

This PR adds the same optimization for ptr::null, ptr::null_mut, and None, when their in-memory representation is zeroes.
2018-04-05 16:51:21 +08:00
..
2018-04-02 16:06:19 +09:00
2018-03-11 10:59:28 -07:00
2017-11-21 15:33:45 +01:00
2018-04-02 16:06:19 +09:00
2018-04-01 22:50:22 -06:00