So... does this only apply to command line then? The santa sample leads me to believe it should help my day to day AS work
p
plastiv
05/22/2021, 3:57 PM
It doesn’t matter if you are executing gradle from shell or from ui button. Everything gradle runs benefits from configuration cache.
Most of the things are delegated to gradle as build system. Things like assemble/compile are run through gradle when you “build” inside of the studio so benefit from all gradle optimizations. Starting from AS4.2 jvm tests are running through gradle test runner. Starting from AS7.1 android tests are running through gradle test runner.
It just studio sync doesn’t run (only) gradle so… generating .idea, .iml, building internal model, indexing does not run gradle so these parts doesn’t benefit.
u
ursus
05/22/2021, 4:00 PM
Yea, but running commandline is always a bit slower.. maybe its the daemon being used implicitly by AS and not on command line?
p
plastiv
05/22/2021, 4:05 PM
Could describe more what is slower? I don’t think it is expected to observe a difference running same task
u
ursus
05/22/2021, 9:24 PM
Yea its psychological sincd As doesnt print the seconds of configuration, thanks