Guides
How to speed up Git LFS checkouts
LFS objects download serially and dominate checkout time.
4 min read
LFS objects download serially and dominate checkout time.
Why it happens
actions/checkout fetches LFS objects one at a time by default and the LFS cache is not persisted.
How to fix it
- Set lfs: true and then run git lfs pull with a higher concurrency setting
- Cache .git/lfs between runs keyed on the LFS pointer files
- Fetch only the LFS paths the job actually needs with include filters
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How to speed up GitHub ActionsYour pipeline takes longer than anyone wants to wait, and it is not obvious where the time goes.How to find the slow step in a workflowThe pipeline is slow but every individual step looks reasonable.How to reduce GitHub Actions cold startsJobs sit for 30 to 90 seconds before the first step runs.How to diagnose GitHub Actions queue timesJobs are queued for minutes before a runner picks them up.