Commits

Anonymous committed 36bf17f

one thread per row.

  • Participants
  • Parent commits 34d1011
  • Branches py3.2-futures

Comments (0)

Files changed (1)

File asciibattle.py

 if sys.version_info < (3, 2, 0, "", 0):
     raise Exception("You need at least Python 3.2 for this experimental concurrent version. TODO: change to require concurrency.futures")
 from concurrent.futures import *
-et = ThreadPoolExecutor(max(4, (Y-20)*(rows)*2)) # one per fighter
+et = ThreadPoolExecutor(rows)
 ep = ProcessPoolExecutor(2) # 3 - 1 processors (1 for freenet, one for the main code -> 2 left)
 
 #: Example sourcedata for creating a character.