|
Answer» AOT and JIT both are used for compilation but AOT is superior to JIT because of the following differences- | | JIT | AOT |
|---|
| 1. | JIT compiles the code just before displaying an application i.e. at RUNTIME. | AOT has already compiled the code at the time of BUILDING an application, so it doesn’t have to compile at runtime. | | 2. | Due to compilation at runtime LOADING in JIT is slow. | Loading in AOT is fast as code has been already compiled. | | 3. | One can see binding ERRORS at only display time. | Template binding Errors can be caught when building your application. | | 4. | The BUNDLE size is higher. | Bundle size is half of the bundle size of JIT. |
|