# compose


12/18/2021, 3:09 PM
Hi all! Is it just me or Compose (or Kotlin plugin) makes Android Studio slow as hell? It takes seconds in basically every possible task (syntax highlighting, show suggestions)... it's becoming quite frustrating


12/18/2021, 7:19 PM
It's certainly not my case. I haven't noticed anything after I started using Jetpack compose. Make sure you are having 16 GB of RAM and Android studio is allowed to use 4 GB of memory.

Colton Idle

12/18/2021, 9:10 PM
Yeah. I've noticed this. Filed bugs, reached out to jetbrains folks. Seems like the difference maker is going to be the new frontend compiler which should be coming out in 2022. Once that is out, then all of the IDE stuff should be faster.
My first bug about this was opened in 2018, where auto-completing took seconds... and sometimes would hang for 10+ seconds. My machine in 2018 had 392GB of RAM. (I have a mac pro tower from work) and so if my machine with 392GB of ram was slow, then there was definitely going to be issues with peoples laptops that have 16GB.


12/19/2021, 10:57 AM
What do you do for work 😭? 392GB of RAM is insane! Have I been settling???

Colton Idle

12/19/2021, 5:20 PM
work on different facets of the same project. so android studio with 1 or 2 emulators, xcode, some docker stuff. etc. plus everything seems to be chrome based now and it just eats gigabytes.
I did start using @mightyapp recently and I've been able to same a ton of ram from chrome. its sad, but right now it solves the problem.

Kazem Moridi

12/20/2021, 6:04 AM
I had the same problem, but after I installed the same version of Kotlin-IDE Plugin as the compose supported version , it fixed the slowness of android studio

Michal Klimczak

12/20/2021, 7:42 AM
if you have an m1 mac, make sure you use the arm64 version of android studio. the intel/rosetta is painfully slow (just like you described)


12/21/2021, 9:17 AM
Idk, I already allowed android studio to use 4gb of ram, don't know what to do
@Kazem Moridi this is interesting, my compose project uses 1.6.0, but i already updated kotlin plugin to 1.6.10

Colton Idle

12/21/2021, 3:29 PM
Write up a bug report on youtrack against intellij. They'll tell you how to get additional info to help them with this.
👍 1


12/21/2021, 5:12 PM
Yup that's what I'll do. I just performed a clean install of AS - no luck. Very embarrassing
👍 1


01/03/2022, 6:26 AM
Note that giving too much RAM to JVM programs can make them slower. I originally increased the IDEA heap size to 4GB, and it wasn't that fast. It's much faster now that I reduced it to 2GB.