Hey, I've observed this behavior where builds are ...
# community-support
p
Hey, I've observed this behavior where builds are sometimes ridiculously slowed down after a (git) branch checkout but never been able to find out a proper explication Does anyone have any insight?
v
You need to investigate that for your concrete project. This can have many reasons. Just switching branches will not cause this, for example if the branches are nearly identical. But if between the branches you for example have different Gradle versions, or different build script class paths and do not use build cache or have a cold cache for that constellation, all tasks might be out of date and rerun for example.
p
I also thought cache was likely the culprit however, the build time difference is huge (I sometime get reported by other folks that they wait up to 30 minutes just to build the project). That's why I wonder if there are any other factors
t
Are you able to reproduce it easily? Did you run with
--debug
logs then? (and/or using a build scan, or a profile report: https://docs.gradle.org/current/userguide/inspect.html) To at least know what takes time.