Repository navigation
Conversation
Agent-Session: 5eb4067a-b2f6-4508-a6dd-0471ff2c14d1 Agent-Session: 429958d8-68f3-4f68-bd3b-a8371e7feb8e
The page kept the compiled module after its pool went idle so the next file's worker could start without a compile. On iOS that module held about 170 MB, while compiling again takes 50-110 ms in the simulator. The module now goes with the last worker. Agent-Session: 429958d8-68f3-4f68-bd3b-a8371e7feb8e Agent-Session: 5eb4067a-b2f6-4508-a6dd-0471ff2c14d1
milanb17
marked this pull request as ready for review
October 12, 2026 16:45
This was referenced Oct 12, 2026
This branch has not been deployed
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
Size diffr web's worker pool for the browser it runs in, and let the compiled engine go when the pool is idle. Stacks on #1022; merge #1022 first.
Evidence
v5.3.0...v5.4.0(217 files), cold loads, Safari's process footprint sampled every 2 s.Merge Danger
Door: two-way; revert the commits.
Blast Radius: diffr web's worker pool. Phones and small desktops diff large comparisons with fewer workers, so slower but within memory. Every device recompiles the engine (~0.1 s) for the first file after 3 idle seconds.