mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
YJIT: Initialize Vec with capacity for iterators (#8439)
This commit is contained in:
parent
9cb33aad55
commit
fcc1699162
Notes:
git
2023-09-14 17:55:19 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue