a-b-street/abstreet

Smaller files: don't serialize turn geometry?

Open

#94 创建于 2020年6月24日

在 GitHub 查看
 (5 评论) (1 反应) (0 负责人)Rust (6,779 star) (256 fork)batch import
good first issue

描述

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.

贡献者指南