-
Notifications
You must be signed in to change notification settings - Fork 852
Add [email protected]
benchmark
#1204
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
Conversation
|
||
(() => { | ||
new Block( | ||
stringToDOM( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this count as too much optimization here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this code generated by a compiler? (Asking since it's under /src)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not. I can rewrite it such that it uses the canonical API instead, do you think that's more aligned with this bench?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that would probably be better, I can't imagine people in practice will write code like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks!
No doubt, it's pretty fast, but looking at the code I'm sure we'll have lots of discussions what flags to add (I propose #772). |
I see.. hmm... @aidenybai you can correct me, but it looks like on select you look up the VDOM nodes and then patch them directly here. I agree this verges on #772. Instead of writing code to describe the selection in the view you do an imperative lookup and mutation. |
Sounds good, I agree with the #772 flag. Is the best way to add a new flag to open up a PR? |
Removes
unkeyed
Million 1.x implementations.Adds Million 2.x
keyed
implementation with (#801)