about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-18 09:41:33 -0700
committerbors <bors@rust-lang.org>2013-10-18 09:41:33 -0700
commitd0529122975919ca4d85c14116617f75cb7a6e6f (patch)
tree938f9342ea93105b37721b0bf97929bcf580a603 /src/rt/sync/rust_thread.cpp
parent792d73259d5fc2e8c81f4e2881150e0f55d4c207 (diff)
parent273784e9bfa006c2651c7890d8e5fb3564b95ec4 (diff)
downloadrust-d0529122975919ca4d85c14116617f75cb7a6e6f.tar.gz
rust-d0529122975919ca4d85c14116617f75cb7a6e6f.zip
auto merge of #9851 : alexcrichton/rust/include_bin, r=huonw
Previously an ExprLit was created *per byte* causing a huge increase in memory
bloat. This adds a new `lit_binary` to contain a literal of binary data, which
is currently only used by the include_bin! syntax extension. This massively
speeds up compilation times of the shootout-k-nucleotide-pipes test

    before:
        time: 469s
        memory: 6GB
        assertion failure in LLVM (section too large)

    after:
        time: 2.50s
        memory: 124MB

Closes #2598
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions