4 ms·
Show HN: 1kb virtual DOM - it's fast!
- fabiancook 5y agoVery cool! Nice and slim, straight diff and apply. Cool to see someone use something other than `h` :P
- aidenyb 5y agothank you! we plan to add some more pinpoint updates for common updates to improve performance further (while staying under 1kb ;])
- djyde 5y agoIs there a benchmark?
- aidenyb 5y agoYes, under the benchmark/ directory
- Raed667 5y agoBut is it "blazing" fast?
- aidenyb 5y agoWe're working on it . Currently it's extremely fast when compared to other vdom libraries but there's further edge cases we can cover to make it even faster
- SahAssar 5y agoI like that it's readable and simple but it lacks some things that I usually need from a DOM layer like lifecycle methods/events and support for keying, SVG, shadow DOM. I think you are also going to run into some issues with browser extensions that inject elements, I had to fix that in my framework.
- aidenyb 5y agoReally interesting - Skruv looks really cool! I think the use cases are slightly different, where million tries to just be a virtual dom that other libraries incorporate, skruv seems to be a JS library (correct me if I'm wrong).
- SahAssar 5y agoThanks! Yep, agreed, my point was more that things like shadow DOM, SVG and lifecyle events need to be integrated at the vDOM/DOM level to work, so a framework could not implement it on top of something like million currently. It'd be great if million could support such use-cases so that people like me didn't write their own DOM diffing/patching.
- aidenyb 5y agoOhh okay, that's a good point! Thank you