Search code examples
flutterjitaot

Flutter AOT vs JIT


My understanding is that Flutter is compiled AOT. Can it be compiled as JIT instead of AOT, will it work and what is the switch that would do that?

Thanks!


Solution

  • In development mode, Flutter is compiled just-in-time. That is why we can do hot-reload/restart so fast. In release mode (when you go to publish your app), your code is compiled ahead-of-time, to native code. It is for better performace, minimum size and remove other stuff that are useful in dev mode.