This is based on a comment from a student in Henri's class. Rather than invoke the simulation each time, just pre-compute everything (for those simulations that are a finite number of input), and just return it by looking up a table, which is blazingly fast. Could be useful for "long"-running simulations. The downside is: if we change the simulation and/or the input format/kind, then we may have to re-run everything to update the table.
This is based on a comment from a student in Henri's class. Rather than invoke the simulation each time, just pre-compute everything (for those simulations that are a finite number of input), and just return it by looking up a table, which is blazingly fast. Could be useful for "long"-running simulations. The downside is: if we change the simulation and/or the input format/kind, then we may have to re-run everything to update the table.