Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plumb through census scenario for now
Currently this is really slow. We'll either need to speed it up significantly or find some way to cache the scenarios and maybe pregenerate them. Here's a breakdown of the time spent: - generate census scenario took 424.5807s - building population areas for map took 2.8061s - parsing geojson took 0.4573s - converting to `CensusArea`s took 2.3351s - ... plus 0.0137s - assigning people to houses took 1.5885s - building people took 420.1861s It's almost entirely in the `building people` step which we can parallelize. I'm sure there are other improvements to make after that.
- Loading branch information
312304b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup!
generate_scenario
is set up in anticipation of this. The only trick is that we can't use the same RNG across threads, so we should make a "copy" before starting the threads. There's afork_rng
method insim/src/make/mod.rs
. It used to be inabstutil
, but I was trying to pare down dependencies there. It's maybe reasonable forpopdat
to reach intosim
for this utility, or maybe we should move it back. Not sure what the fate ofabstutil
is, so maybe keeping it insim
is a little safer.