500x faster postMessage(string)
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Bun v1.2.21 introduces a zero-copy optimization for postMessage(string) that achieves up to 500x faster performance and 22x less memory usage by avoiding serialization for thread-safe strings. The optimization works by directly sharing immutable string pointers between threads in JavaScriptCore, bypassing the Structured Clone
Sort: