maplibre / maplibre-rs

Experimental Maps for Web, Mobile and Desktop
Apache License 2.0
1.32k stars 76 forks source link

Optimization: Avoid copies when parsing MVT tiles #1

Closed maxammann closed 2 years ago

maxammann commented 2 years ago

The crate https://github.com/georust/geozero/ offers minimal copies when parsing geodata. For protobuf this is made possible with the Bytes create (only for byte arrays and string fields).

It also uses a visitor pattern to minimize copies.

maxammann commented 2 years ago

Done, switched to geozero