a-b-street/abstreet

Smaller files: don't serialize turn geometry?

開放

#94 建立於 2020年6月24日

 (5 則留言) (1 個反應) (0 位負責人)Rust (256 個分叉)batch import
good first issue

倉庫指標

星標
 (6,779 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南