about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-21 19:28:44 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-24 01:15:39 +1100
commit06e3e63c9046c160a00122990f31b82dd729a4a3 (patch)
treef71e807008cb54924f4918a05fe4080e0b8bf2da /src/rustllvm/ExecutionEngineWrapper.cpp
parent768b96e8b14b58f9450cdf02199149a8a7b255b4 (diff)
downloadrust-06e3e63c9046c160a00122990f31b82dd729a4a3.tar.gz
rust-06e3e63c9046c160a00122990f31b82dd729a4a3.zip
flate: return CVec<u8> rather than copying into a new vector.
This trades an O(n) allocation + memcpy for a O(1) proc allocation (for
the destructor). Most users only need &[u8] anyway (all of the users in
the main repo), and so this offers large gains.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions