Interactive web applications created with declarative JavaScript User Interface (UI) libraries have increasingly dominated the modern internet. However, existing libraries are primarily made for run-time execution, and rely on the user to load and render web applications. This led us to create Million.js, a fast compiler-augmented virtual Document Object Model (DOM) for the web. Million.js reduces load time and time-to-interactive by creating a compiler to compute interactive regions of a web application before the user visits the page. The virtual DOM run-time optimizes interactive content through compiler flags, compute batching, scheduling, and reactive data primitives to achieve optimal performance. When benchmarked against the most popular virtual DOM libraries, Million.js resulted in 133% to 300% faster rendering and 2347\% faster load. In a real-world web application with both comparative benchmarks and an informal user study, Million.js loaded 35.11% faster after migrating from React. The findings show that web applications have the potential to be orders of magnitude faster through JavaScript UI libraries that use Million.js.
翻译:与 Dalitive JavaScript 用户界面(UI) 图书馆创建的互动网络应用程序日益主导现代互联网。 但是, 现有的图书馆主要用于运行时间执行, 并依靠用户来装入和提供网络应用程序。 这导致我们为网络创建了百万. js, 一个快速编译器的虚拟文档对象模型(DOM) 。 百万. js 减少了负载时间和时间互动性, 通过创建一个编译器来计算用户访问网页之前的网络应用程序的交互式区域。 虚拟 DOM 运行时间优化了通过编译器旗、 计算批量、 排期和反应性数据原始部分的互动内容, 以实现最佳性能。 当以最受欢迎的虚拟 DOM 库为基准时, 百万.js 导致133% 至 300% 更快的投放速度, 和 2347 ⁇ 更快的负载。 在具有比较基准和非正式用户研究的实时网络应用程序中, 百万.js 在从 React 迁移后更快地装入了35.11% 。 。 。 研究结果显示, 网络应用程序有可能通过使用 millents.js 的 JavaScript list list 库获得数量更快。