Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion Regarding Hermes vs Static Hermes Compilation #14

Open
mashish584 opened this issue Oct 15, 2024 · 0 comments
Open

Confusion Regarding Hermes vs Static Hermes Compilation #14

mashish584 opened this issue Oct 15, 2024 · 0 comments

Comments

@mashish584
Copy link

mashish584 commented Oct 15, 2024

Hi @anisurrahman072 ,

I was reviewing the notes for Hermes and Static Hermes, and I came across some points that seemed unclear.

The notes mentions that Hermes compiles JavaScript code to bytecode at runtime. I guess it's AOT right not runtime.

To summarize my current understanding:

Hermes:

Uses AOT to convert JavaScript code into bytecode ahead of runtime, reducing startup time by eliminating the need for on-device parsing and compiling.

Static Hermes:

Further optimizes performance by compiling JavaScript to native code at build time, resulting in smaller and faster binaries without requiring any compilation at runtime.

Could you confirm if this interpretation is accurate?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant