Skip to content

Commit bdd3ff3

Browse files
newsletter: Small note about faster JS array assignment (#150)
1 parent c46aee5 commit bdd3ff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/newsletters/2025-05-31.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ We've added new bytecode instruction that avoid creating temporary `{ done, valu
5151

5252
We've applied a similar optimization to async functions, which internally rely on generators, and made them faster as well by avoid temporary objects allocation.
5353

54+
Array element assignment now has a fast path. If objects in the array’s prototype chain haven’t been modified and the array is not a proxy, we skip the prototype lookup required for potential setters and instead write the value directly into the array’s storage.
55+
5456
### Credits
5557

5658
We'd like to thank everyone who contributed code this month:

0 commit comments

Comments
 (0)