diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-02-15 12:36:10 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-02-18 09:46:33 +1100 |
| commit | f0d8fbd283654479c50a2fec94bf2362eed0f189 (patch) | |
| tree | c0d4e7c81585478c7da752728c571eed8aca9531 /src/rustllvm/RustWrapper.cpp | |
| parent | f8801f3bf641f0277087e6621d09f9a6a373b36c (diff) | |
| download | rust-f0d8fbd283654479c50a2fec94bf2362eed0f189.tar.gz rust-f0d8fbd283654479c50a2fec94bf2362eed0f189.zip | |
Avoid a `clone()` in `transcribe()`.
The current code (expensively) clones the value within an `Rc`. This commit changes things so that the `Rc` itself is (cheaply) cloned instead, avoid some allocations. This requires converting a few `Rc` instances to `Lrc`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
