diff options
| author | bors <bors@rust-lang.org> | 2013-10-16 15:21:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-16 15:21:35 -0700 |
| commit | 9d6c251881584181a0022dc41832398af2136f19 (patch) | |
| tree | ca1c195cd237e8af82db081b74c679786d65bc6d /src/rt/sync/rust_thread.cpp | |
| parent | fa03c9454640032bb1b6a33f996eee0f39e2b946 (diff) | |
| parent | bd7610f3e3861f5b2323ef03ed1c3ccbb7acef55 (diff) | |
| download | rust-9d6c251881584181a0022dc41832398af2136f19.tar.gz rust-9d6c251881584181a0022dc41832398af2136f19.zip | |
auto merge of #9885 : thestinger/rust/vector, r=brson
The goal here is to avoid requiring a division or multiplication to compare against the length. The bounds check previously used an incorrect micro-optimization to replace the division by a multiplication, but now neither is necessary *for slices*. Unique/managed vectors will have to do a division to get the length until they are reworked/replaced.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
