Closed Shepless closed 4 years ago
Serving pre-compressed .gz bundles should be possible with lighttpd. This is not my area of expertise, but I can look into it. That would reduce the size to under 5 MB. (On-the-fly compression is not helping the poor Pi). Reducing the bundle size in the first place would be even better :-)
I can get the payload down a significant amount without gzip. Like you say if we went down that path it would need to be pre-zipped so the PI doesn't need to do the processing. Leave it with me, if we need gzip serving I will let you know :)
Great! Small is beautiful :-) Gzip would be part of the Buildroot custom package build. (Packaging is part of the build, it doesn't download the GitHub release artefact). I would still go for it since we easily reduce the size by 50%, if not 75%.
@zehnm @martonborzak so even without gzip output I have got the total size down to 1.4MB!
@zehnm @martonborzak so even without gzip output I have got the total size down to 1.4MB!
Amazing!
Currently, the bundle size is ~20MB which is slow to load from the remote. We should get this as small as possible to improve loading performance.