andreped/super-ml-pets

Reduce project size

andreped opened this issue · 3 comments

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.

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.

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.

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.