stadiamaps / pmtiles-rs

Rust implementation of PMTiles
Apache License 2.0
54 stars 8 forks source link

Use more bytes :smile: #9

Closed lseelenbinder closed 1 year ago

lseelenbinder commented 1 year ago

Replaces most use of &[u8] with the cheap Bytes to simplify the logic and reduce the number of necessary copies. This works quite well with mmap and http backends, which both use Bytes under the hood, resulting in zero-copy throughout the entire tile delivery code path.

Closes #5.