mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
## Summary - Documents the two new fast path optimizations for postMessage in workers - Adds performance details and usage examples for string and simple object fast paths - Explains the conditions under which fast paths activate ## Background This documents the performance improvements introduced in #22279 which added fast paths for: 1. **String fast path** - Bypasses structured clone for pure strings 2. **Simple object fast path** - Optimized serialization for plain objects with primitive values The optimizations provide 2-241x performance improvements while maintaining full compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>