Ecotrust / cogs-priorities

national-scale refuge planning tool
Other
1 stars 1 forks source link

optimize scenario run time [4 days] #7

Open perrygeo opened 10 years ago

perrygeo commented 10 years ago

Currently breaks down as follows (on my dev VM, times very approximate using 1.25 mil iters and 20 runs):

All of these sections have opportunites for increasing speed and/or caching. Need to profile and attack each of them.

perrygeo commented 10 years ago

As of be82918 , the scenario.run() method is much faster (without variable geography) as we globally cache many of the expensive operations. Cache invalidation is now a bit quicker too. This brings the scenario save time down to ~7 seconds.