wrench-project / eduwrench

eduWRENCH Pedagogic Modules - Parallel and Distributed Computing Courseware
https://eduwrench.org
GNU General Public License v3.0
6 stars 3 forks source link

"Wild" idea: accelerate simultions by pre-computing results #81

Open henricasanova opened 2 years ago

henricasanova commented 2 years ago

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.