Best of BunAugust 2025

  1. 1
    Article
    Avatar of bunBun·39w

    500x faster postMessage(string)

    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 Algorithm for strings that aren't atoms, substrings, or rope strings. This dramatically improves performance for common patterns like sending JSON between workers, with the optimization automatically applying to strings over 256 characters.

  2. 2
    Article
    Avatar of bunBun·38w

    Bun v1.2.21

    Bun v1.2.21 introduces major features including unified SQL client support for MySQL, SQLite, and PostgreSQL through Bun.SQL, native YAML parsing, 500x faster string postMessage performance, and a native secrets manager for secure credential storage. The release adds executable compilation via Bun.build() API with cross-platform targets, Windows metadata embedding, and SIMD-accelerated ANSI escape removal. Package management improvements include security scanner API, enhanced audit filtering, optimized lockfile-only installs, and interactive update scrolling. The update fixes 69 issues with extensive Node.js compatibility improvements and bundler optimizations.