]> git.lizzy.rs Git - rust.git/commit
Speed up compilation of large constant arrays
authorWesley Wiser <wwiser@gmail.com>
Wed, 27 Jun 2018 02:59:10 +0000 (22:59 -0400)
committerWesley Wiser <wwiser@gmail.com>
Wed, 27 Jun 2018 03:04:17 +0000 (23:04 -0400)
commit202aea5acd61ec9d264defffca09c1377950274f
treefe3f13c9dc8147537e22cd28085ce07f299405b1
parent0cf0691ea1879a84d09d53a19e0f0b06827cf95a
Speed up compilation of large constant arrays

This is a different approach to #51672 as suggested by @oli-obk. Rather
than write each repeated value one-by-one, we write the first one and
then copy its value directly into the remaining memory.
src/librustc_mir/interpret/eval_context.rs
src/librustc_mir/interpret/memory.rs