Re: [PATCH V1][RFC] t/perf/p3400: speed up setup using fast-import
- From
Tian Yuchen <a3205153416@gmail.com>
- Date
- Jan 28, 2026, 15:25 UTC
- Message-ID
- <CA+rU_o6+Q89_xJyhuuO20kbpmEttKW8oTf4XFGM=R7V4ZygawQ@mail.gmail.com>
- In-Reply-To
- <CA+rU_o7dZB=OCJHk9nGSbs4RLXmE9A3VUopa+6vF6oX0E9vxuQ@mail.gmail.com>
>...For this reason it is strongly recommended that users repack the repository with >'git repack -a -d' after fast-import completes, allowing Git to reorganize the packfiles >for faster data access...
After adding 'git repack -a -d', the time does changed:
original(no change) patch v1 NEW
real 29.845 18.081 22.231
rebase 13.34 14.94 12.78It seems that the 'git repack -a -d' line does reduce runtime. However, the total duration has seen a noticeable performance regression. I'm still trying to figure it out.
With regards, Yuchen