diff options
author | John Fultz <jfultz@wolfram.com> | 2019-03-19 11:21:46 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-07-21 02:02:55 -0700 |
commit | f2e42335d294128591fb123baddf7182ca390d40 (patch) | |
tree | 779931ce5c0963862fd4c870516045549149073c /datamanager.h | |
parent | e7f645d4f5030e52b1c9f27dc3fbf2c20fd47cd5 (diff) |
Sims are now threaded.
Defaults to two threads right now. This
can be changed in the Simulator constructor
for the time being. An interface will be
added for this soon.
For an example I tried, I got the following times on 500 simulations in a
macOS release build:
* Quackle 1.0.3 - 26 seconds
* master branch, 1 thread - 27 seconds
* master branch, 2 threads - 19 seconds
* master branch, 4 threads - 15 seconds
This isn't the most efficient use of threads.
It distributes all of the plays being simmed
into a thread pool, but only for one simulation.
Then it comes up for air and tries again.
This was the easiest to implement robustly
given the current architecture.
Diffstat (limited to 'datamanager.h')
0 files changed, 0 insertions, 0 deletions