Skip to content

Commit c46aee5

Browse files
newsletter: Add note about JavaScript optimizations (#149)
1 parent 740344e commit c46aee5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ much better aligned with the spec. The last remaining feature that we hadn't imp
4545
developers to transfer streams via `postMessage()` to, for example, a web worker. We've now implemented this feature,
4646
and as a result, we now have a complete streams implementation!
4747

48+
### JavaScript engine optimizations
49+
50+
We've added new bytecode instruction that avoid creating temporary `{ done, value }` result objects when iterating over built-in types like Array, Map, Set and String. This means `for..of`, `for..in` and the spread operator now run with significantly less overhead.
51+
52+
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.
53+
4854
### Credits
4955

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

0 commit comments

Comments
 (0)