mirror of https://github.com/boa-dev/boa.git
Browse Source
Skip `to_string` for integer type primitives in `to_property_key`. It's unnecessary to convert the integer value to string and convert back to `Index(u32)` type. In this example code, it improves around 10% of runtime. ```js let arr = [1,2,3,4,5]; for (let i = 0; i < 10000000; i++) { arr[0] = 123; } ``` Before: 6.24s After: 5.38spull/2268/head
Choongwoo Han
2 years ago
2 changed files with 55 additions and 1 deletions
Loading…
Reference in new issue