GithubHelp home page GithubHelp logo

bibekshah09 / javascript-object-analysis Goto Github PK

View Code? Open in Web Editor NEW
7.0 0.0 4.0 4.76 MB

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.

Home Page: https://medium.com/swlh/exploration-of-javascript-object-for-performance-optimization-70b20246ab9e

JavaScript 100.00%
javascript performance v8-javascript-engine javascript-optimization js-hidden-lcass

javascript-object-analysis's Introduction

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

javascript-object-analysis's People

Contributors

bibekshah09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.