• IWantToFuckSpez@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    Electricity must be cheap in that country. No way those top units are working properly when they are stuck in the heat from all the units below

  • Pechente@feddit.de
    cake
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 months ago

    Is there a reason Android studio is so fucking resource hungry? XCode is running way better with a simulator open and the other Jetbrain IDEs are just fine as well and so is any other virtualization. It’s just Android Studio that sucks somehow.

    • Skull giver@popplesburger.hilciferous.nl
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      I remember the Eclipse days of Android studio and let me tell you: this is a huge improvement for performance and stability.

      In my experience Android Studio performs about as well as IntelliJ for a similarly sized project, especially if you use a modern build system like Gradle. The difference is that if you want your Android app to run on most phones, you need a whole bunch of extra work compared to producing a simple Java 21 .jar file.

      It does a lot of Complicated Shit to make your life easier and that requires a lot of resources. If you follow the basic wizards, you’ll easily gather hundreds or thousands of source files (hidden from you, because you shouldn’t need to bother) for a simple Hello World because of compatibility layers and such. It’s also full of XML parsers, GUI visualisers, live UI renderers for different platforms, and maintains a constant index of all files for autocomplete and code analysis.

      Give it plenty of RAM (8GB works on my machine) and it’ll happily truck along. It tries to minimize resource usage by default, but you can set the memory limit yourself to give it some more breathing room, that helps a lot. Also don’t run any emulators if you’re constrained on resources, of course.

      Oh, and if you’re on Windows, try disabling your antivirus for a short while; IntelliJ works on lots of tiny files and that absolutely massacres performance with Windows Defender and many other live antivirus solutions.

      If you don’t need all of the fancy shit Android Studio comes with, try Visual Studio Code. You’ll need to configure a whole bunch of plugins and maybe add some language servers if you want to work with the XML like on AS, but it doesn’t include the full range of features that bog down the IDE by default.