Reduce macOS thread processing overhead - #299
Merged
Merged
Conversation
SergeSerb2
marked this pull request as ready for review
July 28, 2026 01:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This reduces network transfer, JSON decoding, retained observation work, main-actor wakeups, and history-sized sidebar work on the native macOS path. The large-payload regression fixture verifies a greater than 90% reduction for its representative activity event; upstream reports roughly 50% aggregate WebSocket throughput reduction in pingdotgg/t3code#4622.
Area
apps/mac— native macOS appapps/windows— Windows desktop appapps/mobile— iPhone companion appapps/server— backend serverpackages/contracts,packages/shared,packages/client-runtime, …) or relay (infra/relay)Verification
pnpm run verify --allpasses (check + typecheck + tests; addslint:mobileand the Swift suite)pnpm run test:macpasses (710 tests)Targeted verification also passed 109 related server tests, including projection immutability, MCP passthrough, compact field retention, and the large-payload size bound.
Screenshots / Recordings
Not applicable; behavior and transport performance changes only.
Release notes
Makes long threads, timeline switching, sidebar search, and scenery loading more efficient in the native macOS app.