Closed darengithub closed 2 years ago
Currently, what I usually do is run several terminals at the same time to speed it up.
The problem with using Lua is that it doesn't support multithreading/multiprocessing natively so we have to introduce external dependencies if we want those features.
I considered writing a Python or C wrapper but didn't have time so your work could be helpful xD
0001-multiple-process-support.patch.gz
It's the proposed patch, use gunzip to decompress. And please review.
Good job! I think you can create a new branch if you want to maintain this version. I'd continue to work on the current version since I prefer my implementation.
Sure. My version is committed to the new branch of "daren_multiprocess".
The running for a single battle even looks time consuming. Perallel runs is needed to leverage idle resource.
This is CPU bound usage, multithreading may won't help. So the way is to go multi-processing.
I'd like to look into that. 1 look the lua multi-process supporting. 2 if lua mp supporting is bad, will seek to add a python wrapper.