Some time while we creating project in android studio the main issue we faced is speed and performance. So here is solution which i use to solve this issue.

For Ubuntu Users

  1. Go to location where you install your android studio eg. /home/jgd/Drive/work/software/android-studio/bin
  2. Now open terminal on same location by right click and in terminal write sudo nano studio.vmoptions after this a file will open and we need to change value as shown below.

and save ctrl+o and ctrl+x  to exit.

Increase android studio speed

Hope this small tip will help you.