matsim-vsp / parallel_qsim_rust

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

Move IdStores into global cache #110

Closed Janekdererste closed 9 months ago

Janekdererste commented 9 months ago

Currently, IdStores reside within Network, Population and Garage. This makes it necessary to pass those around a lot. It is time to move the stores into a global cache, where they are accessible from the entire process. We will use thread_local!(static id_stores: Ids) for this.

The IdStores would have to be wrapped into a RecCell to ensure that each part of the program can create ids. Most of the time, the stores are accessed to read ids after ids are created while reading input files.