a-b-street/abstreet

Smaller files: don't serialize turn geometry?

オープン

#94 opened on 2020/06/24

 (5 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (256 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (6,779 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド