52 ms·
Switching code-base to Python 3 or installing gevent/eventlet is certainly more than a 3 line hack. > I believe multiprocessing.dummy is just a wrapper for th
by rdtsc 10y ago
Switching code-base to Python 3 or installing gevent/eventlet is certainly more than a 3 line hack.
> I believe multiprocessing.dummy is just a wrapper for threading which has context switching overhead [1].
Yap. But I am fetching and waiting for data to come from servers half-way across the country. Not worried about too much thread switching overhead. The point it was still faster than a for loop with a fetch. It was replaced by 3 lines which was 10x faster.