Skip to content

Instantly share code, notes, and snippets.

@vijaydeepak-tt
Created May 7, 2019 05:33
Show Gist options
  • Save vijaydeepak-tt/c8166667509e196e91700072a99de1bc to your computer and use it in GitHub Desktop.
Save vijaydeepak-tt/c8166667509e196e91700072a99de1bc to your computer and use it in GitHub Desktop.
What Is the difference between JIT compiler and AOT compiler?
JIT (Just-in-Time) -
1. JIT compiles our app in the browser at run-time.
2. Compiles before running
3. Each file compiled separately
4. No need to build after changing our app code and it automatically reflects the changes in your browser page
5. Highly secure
6. Very suitable for local development
AOT (Ahead-of-Time) -
1. AOT compiles our app code at build time.
2. Compiles while running
3. Compiled by the machine itself, via the command line (Faster)
4. All code compiled together, inlining HTML/CSS in the scripts
5. Highly secure
6. Very suitable for production builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment