When installing custom ROMs most recommend clearing the Dalvik cache. What exactly is Dalvik cache?
The Dalvik cache is the set of saved .dex files. A .dex file is basically a compiled bytecode version of an app that has been built for the Dalvik Virtual Machine on which Android's apps run. It's similar to the Java Virtual Machine and having saved .class files.
Found very insightful information on
Below is the summary of it, more from Android User's perspective in (hopefully) simple words.
Where is dalvik-cache located in my Android device ?
In a typical Android device, there is a directory named
What is purpose of Dalvik cache?
When a user installs new application on Android, Android performs some modifications and optimizations on that application's
What if I clear Dalvik Cache?
There is no effect, other than increasing the next load time of an app, as it is rebuilt.
So an application will take more time to load as it needs to rebuild it's Dalvik Cache. Hence, its is OK to clear
On an additional note, Starting from Android 4.4(KitKat), Google introduced new Android Runtime called ART which is going to ultimately replace the Dalvik Virtual machine. Source
The ART which uses the same bytecode and