hellantos / rosindustrial-website

https://ipa-cmh.github.io/rosindustrial-website/
1 stars 0 forks source link

repository size (now and in the future) #17

Open gavanderhoorn opened 2 years ago

gavanderhoorn commented 2 years ago

A quick check shows the current size of files (excluding .git) is abut 67 MiB.

With .git: about double, so 124 MiB.

Size distribution:

64M     ./assets
54M     ./assets/images
7.4M    ./assets/bootstrap-5.1.3-dist
4.9M    ./assets/bootstrap-5.1.3-dist/css
2.5M    ./assets/bootstrap-5.1.3-dist/js
1.8M    ./assets/mugshots
1.8M    ./_posts
1.3M    ./assets/member-logos
200K    ./assets/icons
124K    ./_members
88K     ./assets/jquery-3.6.0-dist
37K     ./_sass
27K     ./_events
23K     ./_packages
21K     ./developers
20K     ./_includes
18K     ./_layouts
16K     ./industrial_support
14K     ./membership
12K     ./developers/packages
12K     ./about
12K     ./_ressources
12K     ./_people
11K     ./_history
4.0K    ./events
4.0K    ./developers/ressources
4.0K    ./developers/meetings
4.0K    ./blog
2.0K    ./_trainings
1.0K    ./developers/projects
1.0K    ./assets/css
1.0K    ./.github/workflows
1.0K    ./.github

assets is the largest, which is understandable, but there are images there which are over 15 MiB in size (one even 24 MiB). Those should obviously be reduced in size, but even then, we expect many more images/pictures and even videos we probably want to host.

Should we look into hosting deploying images elsewhere (deploying, as it would be good to keep the source of the site in this repository)?

Alternatively, we could set up git-lfs, which should take care of keeping the repository clean. I haven't checked whether github pages works with LFS though, that would be something to check.

gavanderhoorn commented 2 years ago

re: LFS: https://github.com/git-lfs/git-lfs/issues/1342.

hellantos commented 2 years ago

@gavanderhoorn I'll need to look that up a little. I believe, that the blog is going to be costly with regards to images and space. Found this regarding repo size github docs. States 100 GB per repo not sure if we need to worry?

gavanderhoorn commented 2 years ago

Where do you see 100GB?

It's not individual file size I'm worried about necessarily.

But git clones of the repository will get progressively slower and slower. That's really annoying.

Keeping the repository small will make working with it much easier.

hellantos commented 2 years ago

Ah sorry, that is an old information, i was reading this which points to this 2020 version stating about hard limits. About cloning you are totally right.