Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 546667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:53:29+00:00 2026-05-13T10:53:29+00:00

By now, most mainstream browsers have started integrating optimizing JIT compilers to their JavaScript

  • 0

By now, most mainstream browsers have started integrating optimizing JIT compilers to their JavaScript interpreters/virtual machines. That’s good for everyone. Now, I’d be hard-pressed to know exactly which optimizations they do perform and how to best take advantage of them. What are references on optimizations in each of the major JavaScript engines?

Background:

I’m working on a compiler that generates JavaScript from a higher-level & safer language (shameless plug: it’s called OPA and it’s very cool) and, given the size of applications I’m generating, I’d like my JavaScript code to be as fast and as memory-efficient as possible. I can handle high-level optimizations, but I need to know more about which runtime transformations are performed, so as to know which low-level code will produce best results.

One example, from the top of my mind: the language I’m compiling will soon integrate support for laziness. Do JIT engines behave well with lazy function definitions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:53:30+00:00Added an answer on May 13, 2026 at 10:53 am

    This article series discusses the optimisations of V8. In summary:

    • It generates native machine code – not bytecode (V8 Design Elements)
    • Precise garbage collection (Wikipedia)
    • Inline caching of called methods (Wikipedia)
    • Storing class transition information so that objects with the same properties are grouped together (V8 Design Elements)

    The first two points might not help you very much in this situation. The third might show insight into getting things cached together. The last might help you create objects with same properties so they use the same hidden classes.

    This blog post discusses some of the optimisations of SquirrelFish Extreme:

    • Bytecode optimizations
    • Polymorphic inline cache (like V8)
    • Context threaded JIT (introduction of native machine code generation, like V8)
    • Regular expression JIT

    TraceMonkey is optimised via tracing. I don’t know much about it but it looks like it detects the type of a variable in some “hot code” (code run in loops often) and creates optimised code based on what the type of that variable is. If the type of the variable changes, it must recompile the code – based off of this, I’d say you should stay away from changing the type of a variable within a loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most people talk about progressive enhancement right now as serving browsers with javascript (enhanced
I am learning ASP.NET MVC now a days and I have found that most
I'm developing a web application for mobile browsers. Right now most of development is
I know that now that most processors have two or more cores, multicore programming
I have a table which has 11 columns, now most of the time three
I have a sign-in-action-form page which accept username and password from sign-in-form. Now most
Now that most of the major browsers support full page zoom (at present, the
I'm currently using Eclipselink, but I know now days most JPA implementations have been
I been using LDAP for alot of years now and most of the firms
Most projects now need some form of a database. When someone says database, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.