Future: differential outbox updates to reduce bandwidth beyond VALUE_PROP#128
Draft
Future: differential outbox updates to reduce bandwidth beyond VALUE_PROP#128
Conversation
- Track last-sent state per element to compute diffs - Send only changed properties instead of full element state - Add client-side deep merge for incoming diffs - Optimize LOOPBACK=False elements to avoid redundant updates Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Tracking PR — do not merge
This tracks the broader bandwidth optimization idea from zauberzeug#5728: sending only changed attributes in outbox updates, not just skipping VALUE_PROP.
Why keep this
The bool-flag approach (zauberzeug#5933) only skips echoing
VALUE_PROPback to the client. The original diff machinery from this branch could reduce bandwidth further by omitting all unchanged props, classes, styles, etc. For elements with large prop dicts (ag_grid with thousands of rows, plotly, table), this could be significant.What blocked it
@falkoschindler's review identified:
deepcopyon every element per outbox tick is expensive on hot paths_to_dict, causing stale values on clientPath forward
If bandwidth becomes a bottleneck again:
deepcopyvsjson.loads(json.dumps())on heavy elementsbuild_responseandtry_rewindalways use full state_to_dictThe original implementation is preserved on the
outbox-simplificationbranch for reference.