Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] Gzip GeoJSON #1187

Closed
wants to merge 5 commits into from
Closed

[TEST] Gzip GeoJSON #1187

wants to merge 5 commits into from

Conversation

Jesus89
Copy link
Member

@Jesus89 Jesus89 commented Nov 11, 2019

This PR is a test using Gzip(+Base64) compression for the GeoJSON data in the visualizations.

Related to #1188

Advantages

It compresses the data to less than 10%. The compression time is a bit faster than pure-base64-encoding time. The decompression time is similar to pure-base64-decoding. It's a standard compression. It doesn't require extra Python dependencies. It does not require the JS Base64 dependency anymore.

Disadvantages

It requires an external JS dependency.

@Jesus89 Jesus89 mentioned this pull request Nov 11, 2019
@Jesus89 Jesus89 changed the base branch from 551-optimize-df-viz to develop November 11, 2019 17:08
<!-- base64-js -->
<script src='https://libs.cartocdn.com/cartoframes/dependencies/base64.js'></script>

<!-- pako -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎵 pako pako pako 🎵

@Jesus89
Copy link
Member Author

Jesus89 commented Nov 15, 2019

We will implement this compression: #1202

@Jesus89 Jesus89 closed this Nov 15, 2019
@Jesus89 Jesus89 deleted the gzip-geojson branch November 15, 2019 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants