Envelope task #424: === PythonAPI ===
Custom form factors in python do not work with multithreading
|Status:||Rejected||Start date:||13 Nov 2014|
#3 Updated by jmfisher almost 5 years ago
This appears to be a consequence of the global interpreter lock in Python, which prevents calls to the Python interpreter from being executed in parallel. Since the inner loops of Simulation::runSimulation() must call CustomFormFactor.evaluate_for_q() via the Python interpreter, the GIL creates a bottleneck which effectively gives single-threaded performance.