optimamodel / optima

Optima HIV software tool
http://optimamodel.com
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Up to 30% faster model! #1861

Closed kelvinburke closed 1 year ago

kelvinburke commented 1 year ago

Remove almost all of the slow for loops

Advancedtracking is 35% faster than before

I don't know if it can go much faster... I think the ix_ is a little bit of a slow way to slice the matrix but I don't know of a better way...

The fixed proportion section at the end takes ~10% of the runtime, so maybe that could be improved