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% to 300% more operations per second than other Virtual DOM libraries.
翻译:开发并交付交互式网络应用程序的需要迅速增长。 因此, JavaScript 用户界面(UI) 图书馆被引入, 影响了性能和捆绑大小 。 为了解决这个问题, 创建了 million.js 来创建可扩展、 性能和轻量级的编译器组合式 JavaScript 界面图书馆。 这是通过设计一个依靠编译器的计算高效的调控算法来完成的, 然后用一系列相关和详尽的基准来测量性能。 此外, 实施了内建机制, 以允许紧急优化, 让编译器直接跳过运行时间拖动。 与其他虚拟 DOM 传输方法相比, 这些结果显示, 百万. js 的性能优于其他虚拟 DOM 库, 每秒的操作率为133%至300%。