You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been debugging slow startup times for terragrunt and one of the things I've noticed is that the various terragrunt functions that resolve paths relative to the git root all run git rev-parse --show-toplevel. Here's a look at the timing coming out of terragrunt (after i built a custom build to enable microsecond timestamps):
The git root directory should be static and should only need to be evaluated once, then individual relative directory paths calculated from that. This particular example output is from one of many accounts. Looking at a total runtime across our entire repo, this gets called 679 times and adds roughly 8 seconds to terragrunt startup time and could be easily eliminated.
The text was updated successfully, but these errors were encountered:
I've been debugging slow startup times for terragrunt and one of the things I've noticed is that the various terragrunt functions that resolve paths relative to the git root all run
git rev-parse --show-toplevel
. Here's a look at the timing coming out of terragrunt (after i built a custom build to enable microsecond timestamps):The git root directory should be static and should only need to be evaluated once, then individual relative directory paths calculated from that. This particular example output is from one of many accounts. Looking at a total runtime across our entire repo, this gets called 679 times and adds roughly 8 seconds to terragrunt startup time and could be easily eliminated.
The text was updated successfully, but these errors were encountered: