mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 20:58:35 +03:00
chore(es/parser): Reduce pre-allocation to reduce memory usage (#6979)
**Related issue:** - Closes https://github.com/swc-project/swc/issues/6966.
This commit is contained in:
parent
6496796c59
commit
f1e7a2a9cc
@ -712,7 +712,7 @@ impl<I: Tokens> Parser<I> {
|
||||
expect!(p, '(');
|
||||
|
||||
let mut first = true;
|
||||
let mut expr_or_spreads = Vec::with_capacity(8);
|
||||
let mut expr_or_spreads = Vec::with_capacity(2);
|
||||
|
||||
while !eof!(p) && !is!(p, ')') {
|
||||
if first {
|
||||
|
Loading…
Reference in New Issue
Block a user