5 ms·
Looks like a VDOM, but is faster like a compiler; I wonder how it compares to the (well established, excellent) SolidJS? BTW... docs point out it is written by
by kylecordes 4y ago
Looks like a VDOM, but is faster like a compiler; I wonder how it compares to the (well established, excellent) SolidJS?
BTW... docs point out it is written by a high school student. A very, very impressive high school student!
- game-of-throws 4y agoVDOMs aren't inherently slow... Inferno uses a VDOM and scores within a few % of SolidJS on js-framework-benchmark. (Never used it myself) https://www.infernojs.org/ https://www.infernojs.org/
- mhoad 4y agoVDOM is an outdated 2012 concept when running in a 2022 browser though. Completely unnecessary and just doubles the data structures and fights against the browser itself. None of the fastest modern frameworks use it as far as I know (solid, lit, fast, svelte and stencil)
- onion2k 4y agoVDOM is an outdated 2012 concept when running in a 2022 browser though. Is every user running a 2022 browser?
- mhoad 4y agoI mean generally, yes? Evergreen browsers have been the standard for many years now in all major browsers. The worst offender I guess is Safari which has historically tied updates to a few times a year rather than much shorter cycles used in Edge, Firefox and Chrome. Whatever delays there may be in those update cycles I’m confident that you shouldn’t need to be catering to 2012 browsers. VDOM just isn’t necessary as a performance hack and hasn’t been for many years at this point.
- dodyg 4y agoVue still uses VDOM https://vuejs.org/guide/extras/rendering-mechanism.html#render-pipeline https://vuejs.org/guide/extras/rendering-mechanism.html#rend...
- mhoad 4y agoThanks for letting me know, updated the comment to remove it
- aidenyb 4y agoThanks! We're planning on adding a benchmark soon: https://github.com/aidenybai/million/issues/37 https://github.com/aidenybai/million/issues/37