andreped / super-ml-pets

🐢 AI for Super Auto Pets
MIT License
31 stars 13 forks source link

Reduce project size #53

Closed andreped closed 10 months ago

andreped commented 1 year ago

Right now the entire repo is about 327 MB, which is way higher than the recommended maximum size of 100 MB.

This also means that it takes very long to clone.

andreped commented 1 year ago

Apparently the .git directory contains ~300 MB. It is likely due to storing history on a large number of image files, which should not be necessary.

andreped commented 1 year ago

The .git/objects/pack/*.pack is where the magic happens. Should be possible to avoid storing history of these image files. Likely using Large File Storage (LFS) solved this issue, but from experience, it is annoying to remove LFS when first added to a project.

andreped commented 10 months ago

I have removed all icons from src/*, hence, it should be a lot smaller in future releases.

However, we might have to rewrite history to fully resolve the issue, but I think it is OK for now. Can re-open or open a new issue, if relevant.