about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-15 23:30:53 +0100
committerGitHub <noreply@github.com>2021-01-15 23:30:53 +0100
commit033faf9499d4241e40152515e6ad85ba184062a1 (patch)
treeaf9e76ad20a60b5dc90b7179e62949fbd9d9c229 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb7a9d6a51ff548a0ffbef8b537127ced7ad527ef (diff)
parente7276006eab1e51fc6cabfdd7efb17cd6e764849 (diff)
downloadrust-033faf9499d4241e40152515e6ad85ba184062a1.tar.gz
rust-033faf9499d4241e40152515e6ad85ba184062a1.zip
Rollup merge of #80515 - GuillaumeGomez:js-for-loop-perf, r=Nemo157,jyn514
Improve JS performance by storing length before comparing to it in loops

Since https://github.com/rust-lang/rust/pull/79052 is quite complicated to review, I suggested to split into smaller parts. This first part is mostly about saving the array length into a variable (I tried to not change anything else as much as possible :smiley: ).

r? `@jyn514`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions