a-b-street/abstreet

Smaller files: don't serialize turn geometry?

Open

#94 opened on Jun 24, 2020

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Rust (6,779 stars) (256 forks)batch import
good first issue

Description

Not sure this will work, but it's a good little exploratory project. map_model/src/turn.rs stores geom: PolyLine. Last time I used the serialized_size_bytes stuff in map.rs, these polylines constituted a huge part of the binary map files. The release size is slowly growing, so it'd be nice to trim this down.

Maybe we could skip serializing the PolyLine, then in Map::new after deserializing, go fill it in again. Should measure the impact on file sizes and initial map loading time.

Contributor guide