Treffer: Code optimization opportunities in the JavaScript ecosystem with Rust
LICENCIA DE USO: Los documentos a texto completo incluidos en Dialnet son de acceso libre y propiedad de sus autores y/o editores. Por tanto, cualquier acto de reproducción, distribución, comunicación pública y/o transformación total o parcial requiere el consentimiento expreso y escrito de aquéllos. Cualquier enlace al texto completo de estos documentos deberá hacerse a través de la URL oficial de éstos en Dialnet. Más información: https://dialnet.unirioja.es/info/derechosOAI | INTELLECTUAL PROPERTY RIGHTS STATEMENT: Full text documents hosted by Dialnet are protected by copyright and/or related rights. This digital object is accessible without charge, but its use is subject to the licensing conditions set by its authors or editors. Unless expressly stated otherwise in the licensing conditions, you are free to linking, browsing, printing and making a copy for your own personal purposes. All other acts of reproduction and communication to the public are subject to the licensing conditions expressed by editors and authors and require consent from them. Any link to this document should be made using its official URL in Dialnet. More info: https://dialnet.unirioja.es/info/derechosOAI
LatIA, ISSN 3046-403X, Nº. 2, 2024 (Ejemplar dedicado a: LatIA)
English
https://dialnet.unirioja.es/servlet/oaiart?codigo=9873190
(Revista) ISSN 3046-403X
1515684065
From OAIster®, provided by the OCLC Cooperative.
Weitere Informationen
This paper explores the potential of optimizing node.js applications by integrating rust. In particular, in processing cpu-intensive tasks where javascript faces performance limitations due to its single-threaded architecture. Rust's memory safety and parallelism model, which eliminates the need for a garbage collector, makes it an attractive alternative to traditional c/c++ modules for extending the capabilities of node.js. This study explores the performance gains achieved by integrating rust, both through native bindings and WebAssembly, demonstrating significant improvements in computational efficiency, especially in parallel processing scenarios. Rust's ability to efficiently handle computation-intensive workloads with work interception algorithms is emphasized as a key factor in overcoming javascript bottlenecks. The study includes a detailed performance evaluation that compares synchronous and asynchronous modules in node.js with rust implementations. Tests demonstrate how rust optimizations outperform javascript by up to ten times in certain computational tasks. The study also evaluates cross-compiled rust modules using WebAssembly in the browser environment, which once again illustrates the advantages of rust in providing near-native performance. The results emphasize the potential of rust to enhance node.js applications by making them more scalable, reliable, and efficient for high-performance web applications