My repo became very slow and to debug it I installed git-sizer.
I see from git-sizer output:
| Biggest objects | | |
| * Commits | | |
| * Maximum size [1] | 734 B | |
| * Maximum parents [2] | 2 | |
| * Trees | | |
| * Maximum entries [3] | 33.1 k | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| * Blobs | | |
| * Maximum size [4] | 90.5 MiB | ********* |
| Biggest checkouts | | |
| * Number of directories [5] | 2.30 k | * |
| * Maximum path depth [6] | 8 | |
| * Maximum path length [6] | 156 B | * |
| * Number of files [5] | 348 k | **** |
For my repo "Maximum entries" is reaching limit as shown "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!".
But the number of files is not that bad "****".
So whats happening here?
Is there a way I can reduce the "Maximum entries" for my git repo?
I have already tried:
git reflog expire --expire=now --all
git gc --prune=now
git push origin --force --all
git push origin --force --tags
rm -rf .git/refs/original/
git fetch
git reset origin/main --hard