3 ms·
This is for real, but this doesn't mean you can't use parallelism. Only that you can't use thread for them most of the time . Parallelism strategies in Python
by BiteCode_dev 5y ago
This is for real, but this doesn't mean you can't use parallelism. Only that you can't use thread for them most of the time .
Parallelism strategies in Python usually revolve around using the multprocessing module, a c extension (numpy will release the gil, and hence all the science stack) or using a 3rd party tools (dask is pretty popular, and allow easy parallelism: https://dask.org/ https://dask.org/).
- bobbylarrybobby 5y agoEven python's parallelism is subpar because objects passed across processes have to be pickled. This both takes time and limits the kinds of objects that can be sent across processes (no lambdas, for instance).