diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-09-14 10:55:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-14 10:55:00 -0700 |
| commit | fcc16991623653e72298b97ea0d5000ce6aa31c7 (patch) | |
| tree | 0ed03cccf3e5e2cea97a5cc88b06b71e00c3a53b | |
| parent | 9cb33aad55e0a2cded3b09b0509b9c53fb0fa5ae (diff) | |
YJIT: Initialize Vec with capacity for iterators (#8439)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
| -rw-r--r-- | yjit/src/backend/ir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs index 5f69f5a01f..7477f375ac 100644 --- a/yjit/src/backend/ir.rs +++ b/yjit/src/backend/ir.rs @@ -1568,7 +1568,7 @@ impl AssemblerDrainingIterator { Self { insns: asm.insns.into_iter().peekable(), index: 0, - indices: Vec::default() + indices: Vec::with_capacity(ASSEMBLER_INSNS_CAPACITY), } } |
