dash icon indicating copy to clipboard operation
dash copied to clipboard

consider using `SmallVec` in more places

Open y21 opened this issue 2 years ago • 0 comments

It might be worth in a lot of cases, especially for function calls. I'm guessing that an overwhelming number of function calls in any JS program usually only has up to 3-4 arguments at most. We'll have to experiment and see which numbers make sense (or if it even makes sense at all), but if we can avoid many of these tiny allocations, I think that would already be a good improvement. I know that there's quite a few places in dash where we do something like value.call(this, vec![arg]) (i.e. a one-value vec).

y21 avatar Jul 01 '23 10:07 y21