Million.js: A Fast, Compiler-Augmented Virtual DOM for Performant JavaScript UI Libraries

02/17/2022
by   Aiden Bai, et al.
0

The need for developing and delivering interactive web applications has grown rapidly. Thus, JavaScript User Interface (UI) libraries were introduced, at the detriment of performance and bundle size. To solve this problem, Million.js was created to allow for the creation of compiler-augmented JavaScript UI libraries that are extensible, performant, and lightweight. This was accomplished by designing a computationally efficient diffing algorithm that relies on a compiler, and then measuring the performance with a series of relevant and exhaustive benchmarks. Additionally, built-in mechanisms are implemented to allow for imperative optimizations, allowing the compiler to directly skip runtime diffing. When compared to other methods of virtual DOM rendering, these findings showed that Million.js had superior performance, with 133 more operations per second than other Virtual DOM libraries.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset