React-Native-Advanced-Guide icon indicating copy to clipboard operation
React-Native-Advanced-Guide copied to clipboard

Confusion Regarding Hermes vs Static Hermes Compilation

Open mashish584 opened this issue 1 year ago • 0 comments

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!

mashish584 avatar Oct 15 '24 11:10 mashish584