YIO-Remote / web-configurator

🖥️ web configurator - self hosted, locally available website
GNU General Public License v3.0
0 stars 3 forks source link

Smaller Payload Size #25

Closed Shepless closed 4 years ago

Shepless commented 4 years ago

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.

zehnm commented 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 :-)

Shepless commented 4 years ago

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 :)

zehnm commented 4 years ago

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%.

Shepless commented 4 years ago

@zehnm @martonborzak so even without gzip output I have got the total size down to 1.4MB!

martonborzak commented 4 years ago

@zehnm @martonborzak so even without gzip output I have got the total size down to 1.4MB!

Amazing!