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

Encoding about as slow as JSON.stringify #119

Open
ghost opened this issue Mar 19, 2021 · 0 comments
Open

Encoding about as slow as JSON.stringify #119

ghost opened this issue Mar 19, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 19, 2021

Consider this a companion for #114 to also challenge this claim from the README (and the similar claim from the pbf README):

Very fast encoding and decoding — even faster than native JSON parse/stringify.


Namely, this is our use-case: maplibre/maplibre-gl-js#106 (comment)

In Chrome, for me, JSON.stringify and geobuf.encode, seem to take about ~200ms each.
I did not try other browsers yet.

(Unfortunately I can't share my actual GeoJSON, but if we decide to move forward with trying to make geobuf work for us, then I'll likely construct a similar test case; our GeoJSON is described in the linked issue though)

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

No branches or pull requests

0 participants