a-b-street/abstreet

Smaller files: don't serialize turn geometry?

Open

#94 ouverte le 24 juin 2020

Voir sur GitHub
 (5 commentaires) (1 réaction) (0 assignés)Rust (256 forks)batch import
good first issue

Métriques du dépôt

Stars
 (6 779 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur