damonhook / aos-statshammer

A tool for calculating and comparing damage outputs for Warhammer Age of Sigmar units.
https://aos-statshammer.herokuapp.com/
MIT License
18 stars 10 forks source link

Don't keep simulation results in array (Memory optimisation) #32

Closed damonhook closed 4 years ago

damonhook commented 4 years ago

Currently it does all of the simulations and maps the results to an array. It then uses this array to create the frequency counts, and then no further use is needed for it.

Instead we should just build the frequency array as we simulate. This will improve memory utilisation.