matsim-vsp / parallel_qsim_rust

Parallel and distributed implementation of the Qsim in Rust
8 stars 0 forks source link

Switch internal id representation to u64 #105

Closed Janekdererste closed 10 months ago

Janekdererste commented 10 months ago

Our Id<T> uses contains a String for the external, as well as a usize for the internal representation of IDs. Although usize is the natural thing to use here, it causes numerous casts, as the wire format requires u64 integers. Therefore, we should switch the internal ID to u64 as well.

In the same PR, we can switch all internal maps to u64 keys, to avoid fetching ID pointers all the time.