Frontmatter
| id | 8125 |
| title | Manager: Optimization for zero-delta updates |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 16, 2025, 7:30 PM |
| updatedAt | Dec 16, 2025, 7:37 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8125 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 16, 2025, 7:37 PM |
When a VDOM update (via
updateVdomorreply) contains zero deltas, there is no need to queue it for the main thread'srequestAnimationFramecycle. Doing so adds unnecessary latency for no-op updates.This task is to modify
src/worker/Manager.mjsto check for empty deltas inonWorkerMessage.deltasare empty, send the reply immediately.deltasexist, proceed with the existing delayed promise logic.This optimization applies to both the
action: 'updateVdom'path and theaction: 'reply'(VDOM) path.