Closed skjerns closed 4 years ago
@skjerns Thank you for your feedback.
You can switch to a single process by setting max_workers attribute of the writer to one:
writer.max_workers = 1
are there such heavy computations to be made?
Yes, the larger the data the more converting processing time will required.
However, multiprocessing is not always necessary especially for small data like your example.
It might be more desirable to max_workers
to one as the default.
I will consider for the future release.
I'm using a script to call a table-writer method in another module.
However, due to
multiprocessing
usage, this fails, as the new processes import the unprotected script.Can be reproduces like this:
I'm a bit surprised that this package needs multiprocessing, are there such heavy computations to be made?
Might it be an idea to switch to
joblib.Parallel
, as in my experience it doesn't suffer from this problem? Or to disable multiprocessing/switch to multithreading (no reimport of main module necessary)?(It's a Windows problem, as there is no
fork
on winx)