GFDRR / thinkhazard

ThinkHazard!
http://thinkhazard.org/
GNU General Public License v3.0
31 stars 17 forks source link

Speedup PDF rendering #925

Closed arnaud-morvan closed 4 years ago

arnaud-morvan commented 4 years ago

PDF rendering on United States takes approximatively 15 seconds while it was failing after 2 minutes before.

Simultaneous rendering sometimes prevent Gunicorn from restarting. But this seems to be an development only issue as it appends when Gunicorn auto-reload when ovewriting python files in docker volume.

Simplified geometries seems a little more accurate than before but rendered really faster. Neighbours rendering on US take 1s now instead of 15s before.

Note: It also fix the artefact on Russia geometry when displaying United States. => No, I was working with old divisions, error with Russia seems related to new dataset.