Skip to content

Delve deeper into the optimization techniques used in the V8 JavaScript engine, with a focus on hidden classes and their impact on performance. Hidden classes for faster property access and inline caching further enhance optimization.

BibekShah09/javascript-object-analysis

Repository files navigation

JavaScript Optimization: Exploring V8 Engine and Hidden Classes for Improved Performance

In JavaScript, Objects are mutable (alterable) data types. Created by literals and compared by reference, JavaScript Objects are the collection of properties, mapping between keys and values.

Performance factor — Property Access Time

Property access mechanism in strongly typed language is different from dynamically typed language. In V8, the object has a hidden class associated with it which works similarly to fixed object layout in Java, except they are created at run time and updated dynamically as object changes.

For more details refer The Secrets of JavaScript Object for Performance Optimization.

Prerequisites

Git
d8

Installation

git clone repo_name # or clone your own fork
cd repo_name
rm rf .git

Execution

Execution commands and outputs are provided in each folder/file.

Author

Bibek Shah

License

MIT

About

Delve deeper into the optimization techniques used in the V8 JavaScript engine, with a focus on hidden classes and their impact on performance. Hidden classes for faster property access and inline caching further enhance optimization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published