论文标题

百万.js:网络的快速编译器的虚拟DOM

Million.js: A Fast Compiler-Augmented Virtual DOM for the Web

论文作者

Bai, Aiden

论文摘要

用声明的JavaScript用户界面(UI)库创建的交互式Web应用程序越来越多地主导了现代互联网。但是,现有库主要用于运行时执行,并依靠用户加载和渲染Web应用程序。这使我们创建了百万.js,这是一个快速编译器的虚拟文档对象模型(DOM)。百万.js通过在用户访问页面之前创建编译器来计算Web应用程序的交互式区域,从而减少了加载时间和时间交互式。虚拟DOM运行时通过编译器标志,计算批处理,调度和反应性数据原始图来优化交互式内容,以实现最佳性能。当针对最受欢迎的虚拟DOM库的基准测试时,百万.JS导致133%至300%的渲染速度和2347 \%\%更快的负载。在具有比较基准和非正式用户研究的现实世界Web应用程序中,从React迁移后,Million.js加载了35.11%。研究结果表明,Web应用程序有可能通过使用百万js的JavaScript UI库更快地成为数量级。

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.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源