overthesun / simoc

A scalable model of an interactive, off-world community
https://ngs.simoc.space/
GNU General Public License v3.0
2 stars 2 forks source link

Serve gzipped simdata files from the backend #297

Closed ezio-melotti closed 1 year ago

ezio-melotti commented 1 year ago

This PR adds Gzip compression to the simdata files served by the backend. The b2 mission 1 simdata file is reduced from 60 to 15MB, with the other simdata files showing similar compression (~1/4 of the original size): image The last column (Size) shows the actual file size, the second-last (Transferred) the gzipped file transferred.

Mars simdata files also benefit from the compression, even though they were already much smaller: image

The client is able to automatically unzip the gzipped simdata files, so no changes are required in the frontend.

ezio-melotti commented 1 year ago

With my (relatively slow) connection I can now download the biggest preset (b2 mission 1) in under 30s from beta: image