Workspace Caching Optimizations for Git

Hi everyone, we’re excited to share that we’ve been working on optimizing the Git checkout process for workspace caching. Instead of performing a hard reset following workspace restoration, we will now discard local changes and pull remote changes. Based on our trial data, this refined checkout flow, especially combined with low or no compression levels can result in up to a 30% reduction in build times compared to previous workspace caching times for the same project.

This optimization is particularly noticeable when dealing with larger repositories and when building on Windows OS. We recommend avoiding alterations to your Git history to minimize the need for a hard reset operation to realign the history.

1 Like