LearnNewsExamplesServices
Frontmatter
id8125
titleManager: Optimization for zero-delta updates
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 16, 2025, 7:30 PM
updatedAtDec 16, 2025, 7:37 PM
githubUrlhttps://github.com/neomjs/neo/issues/8125
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 16, 2025, 7:37 PM

Manager: Optimization for zero-delta updates

Closed v11.17.0 enhancementai
tobiu
tobiu commented on Dec 16, 2025, 7:30 PM

When a VDOM update (via updateVdom or reply) contains zero deltas, there is no need to queue it for the main thread's requestAnimationFrame cycle. Doing so adds unnecessary latency for no-op updates.

This task is to modify src/worker/Manager.mjs to check for empty deltas in onWorkerMessage.

  • If deltas are empty, send the reply immediately.
  • If deltas exist, proceed with the existing delayed promise logic.

This optimization applies to both the action: 'updateVdom' path and the action: 'reply' (VDOM) path.

tobiu added the enhancement label on Dec 16, 2025, 7:30 PM
tobiu assigned to @tobiu on Dec 16, 2025, 7:31 PM
tobiu added the ai label on Dec 16, 2025, 7:31 PM
tobiu referenced in commit 4902695 - "Manager: Optimization for zero-delta updates #8125" on Dec 16, 2025, 7:36 PM
tobiu closed this issue on Dec 16, 2025, 7:37 PM