Run command:
touch ~/Library/Preferences/AndroidStudioX.X/studio.vmoptions
open -e ~/Library/Preferences/AndroidStudioX.X/studio.vmoptions
This is my configuration:
-Xms256m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
If you want to fall back to default values (Android Studio 2.2), here it is:
-Xms256m
-Xmx1280m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
ℹ️ If you want more information, check this link: http://tools.android.com/tech-docs/configuration
You can find all this gist on Medium here -> Improve your experience on Android Studio
You can see other best Android Gists or offer your just here https://github.com/lopspower/BestAndroidGists 👍.