rust-transit / gtfs-structure

Read a GTFS file
MIT License
56 stars 32 forks source link

Reduce the RawStopTime size #142

Closed antoine-de closed 11 months ago

antoine-de commented 1 year ago

Change unparsed enums from u32 to u16.

This reduce the RawStopTime's size from 136 to 120.

I think unparsed values are still quite high (and higher that 65536 will trigger an error on the row, so not a huge deal).

On the FR IDF dataset, memory consumption goes from 3.9G to 3.4G.

Don't really know if the reduce value range is a problem on real datasets though