-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does hyperapp's virtual dom support keyed children? #132
Comments
@yelouafi Correct. I am not sure I can keep the 1kb promise if we implement keyed children too. On the other hand, hyperapp 0.7.0 already performs "better" than React; this is a local run of js-framework-benchmarks up to date for 0.7.0. All virtual DOM engines are basically fast. Related: |
This PR is not to support keyed children, but goes a bit of the way to solve the same problem: Specifically, it frees you a little from the positional-only updating of dom nodes, by letting you specify some elements that should be inserted, rather than replacing an existing dom node (in a potentially long chain of unnecessary dom operations) |
@jbucaran: gotta ask about the benchmark table: how did you make that (a tool I could download, or did you put it together yourself?) I thought it would be interesting to check the performance effects of using the _insert flag of PR 135. |
Thanks @leeoniya! |
@jbucaran |
Closing in favor of #141 🔥 |
Looked at the source (https://github.com/hyperapp/hyperapp/blob/master/src/app.js#L280-L284) and it seems like element's children are only patched by position.
The text was updated successfully, but these errors were encountered: