Computer Software
Print ISSN : 0289-6540
Reducing Memory Footprint of JavaScript Virtual Machines for Embedded Systems Using Storage Strategy
Tatsuhiko NAGAYATomoharu UGAWA
Author information
JOURNAL FREE ACCESS

2023 Volume 40 Issue 4 Pages 4_54-4_66

Details
Abstract

Dynamically typed languages, such as JavaScript, require more memory compared to statically typed languages because they determine data types at runtime and need to store data type information in memory along with the values. However, even in dynamically typed languages, collections such as arrays are often used to store values of the same type. To reduce memory usage, we implemented a technique called “storage strategy” on arrays that store only values of the same type. This technique involves holding the type information within the collection itself rather than storing it separately. We introduced smaller data types such as 1-byte integers for the array data types to further reduce memory usage. We implemented our proposal in a JavaScript virtual machine specifically designed for embedded systems and evaluated its performance.

Content from these authors
© 2023, Japan Society for Software Science and Technology
Previous article Next article
feedback
Top