You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The JSON frontend currently executes test suites in a for loop. For large datasets, this can be quite slow. It would be good if we could execute tests in parallel to speed things up a bit, although it is desirable to preserve the order in which results are presented.
I believe the easiest way to do this would be to have the msg object be returned, and then we could just use multiprocessing and pool.map.
The text was updated successfully, but these errors were encountered:
After spending more time than I want to admit looking at this, it sadly isn't as simple a solution as I first thought.
When sending the arguments of the _execute_test_case function into the pool.map, they get pickled. However the CausalTestCase object is not pickleable due to this error message:
ValueError: ctypes objects containing pointers cannot be pickled, which is not something I have ever come across before.
I've tried using dill as an alternative and more flexible serialisation library but that returns an almost identical error as well.
Going to look into it a bit more but it might be a larger task than we first thought
Is your feature request related to a problem? Please describe.
The JSON frontend currently executes test suites in a
for
loop. For large datasets, this can be quite slow. It would be good if we could execute tests in parallel to speed things up a bit, although it is desirable to preserve the order in which results are presented.I believe the easiest way to do this would be to have the
msg
object be returned, and then we could just usemultiprocessing
andpool.map
.The text was updated successfully, but these errors were encountered: