Paper
11 October 2023 A multi-threaded virtual DOM difference method based on web worker
Zeyu Chen, Lei Yang, Jue Wu, Fujun Yang
Author Affiliations +
Proceedings Volume 12800, Sixth International Conference on Computer Information Science and Application Technology (CISAT 2023); 128002O (2023) https://doi.org/10.1117/12.3003797
Event: 6th International Conference on Computer Information Science and Application Technology (CISAT 2023), 2023, Hangzhou, China
Abstract
With the development of web technology, web pages become more and more complex. Using the virtual DOM method can make the web page have efficient update performance without reducing development efficiency. An essential part of this method is the ability to quickly calculate the differences between the old and new virtual DOMs and update them into the old DOM. This paper presents a multi-threaded virtual DOM difference method based on web workers. This method improves the performance of difference method by offloading tasks to worker threads and using a multi-threaded parallel method based on worker thread pools, and presents a method based on SharedArrayBuffer to reduce the consumption of data communication between threads. Experimental results show that compared with the original main thread difference method, the new method can obtain a speedup ratio of 1.3x-2.4x in the scenario of 10k scale nodes and four threads.
(2023) Published by SPIE. Downloading of the abstract is permitted for personal use only.
Zeyu Chen, Lei Yang, Jue Wu, and Fujun Yang "A multi-threaded virtual DOM difference method based on web worker", Proc. SPIE 12800, Sixth International Conference on Computer Information Science and Application Technology (CISAT 2023), 128002O (11 October 2023); https://doi.org/10.1117/12.3003797
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Engineering

Back to Top