Frontmatter
| id | 1123 |
| title | vdom.Helper: update() => performance |
| state | Closed |
| labels | enhancementstale |
| assignees | tobiu |
| createdAt | Aug 21, 2020, 8:53 PM |
| updatedAt | Sep 27, 2024, 4:34 AM |
| githubUrl | https://github.com/neomjs/neo/issues/1123 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 27, 2024, 4:34 AM |
I think we can further increase the performance, in case we add a map for the new & old vnode trees.
object keys with the structure:
ìd: {vnode, parentId, parentIndex, parentVnode}
(parentId is a bit redundant (same as parentVnode.id)).
This way we would ensure, that vnode trees only get recursively parsed 3 times
right now, there are additional sub tree parsings in place (to find moved nodes).