JIT compilation and AOT compilation

JIT(just in time)

  • Real-time compilation, just-in-time compilation.
  • Profile-Based Optimization, optimizes while running, and obtains the most optimized code as possible based on runtime information over time, which is suitable for development and debugging.

AOT(ahead of time)

  • Pre-compiled, statically compiled.
  • Compile the binary code during installation to improve the execution speed at runtime. Can increase speed (especially startup time), reduce memory footprint (not JIT) and improve memory recycling.
  • Use AOT compilation mode, the template is type-safe, suitable for deployment and release.

JIT and AOT comparison

Insert picture description here
Reference materials
JIT and AOT compilation technology
JIT compilation and AOT compilation
JIT and AOT
AOT, JIT difference, each has its own advantages and disadvantages, mixed compilation

Guess you like

Origin blog.csdn.net/studyeboy/article/details/111539432