Files
bun.sh/docs/api
robobun 83293ea50c Document postMessage fast paths in workers.md (#22315)
## 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>
2025-09-01 18:19:22 -07:00
..
2025-07-10 00:10:43 -07:00
2025-07-10 00:10:43 -07:00
2024-09-26 13:47:09 -07:00
2025-03-26 20:51:20 -07:00
2025-07-10 00:10:43 -07:00
2025-08-11 18:42:55 -07:00
2025-02-19 20:48:12 -08:00
2025-07-10 00:10:43 -07:00
2023-02-23 17:13:30 -08:00
2025-07-10 00:10:43 -07:00
2025-06-03 03:34:35 -07:00
2025-01-13 02:15:17 -08:00
2025-04-16 23:22:41 -07:00
2025-07-10 00:10:43 -07:00
2025-08-23 06:57:00 -07:00
2024-09-06 13:26:20 -07:00
2025-08-01 16:09:44 -07:00
2025-01-17 22:08:07 -08:00
2025-08-23 18:13:53 -07:00