3 ms·
So why not just use: gevent.joinall([gevent.spawn(call_get, get_client_for_key(key), key) for key in keys]) gevent uses epoll/kqueue in the background as
by btown 11y ago
So why not just use:
gevent.joinall([gevent.spawn(call_get, get_client_for_key(key), key) for key in keys])
gevent uses epoll/kqueue in the background as well; as far as I know, no threads are spawned or locked. Is there some kind of fancy scheduling going on in rb?
- zeeg 11y agoForcing a dependency on people isn't always the friendliest thing, especially when it comes to version, especially in Python. We don't use gevent anywhere else, and while I'm certain it has a better implementation, it's about the right tradeoffs.
- the_mitsuhiko 11y agoWe are not using gevent anywhere and we can't really because of it not working well for the majority of our work. The redis pyrhon library only works with gevent if you monkey patch everything and that would be very problematic for us. Lastly that does not support pipelining still, something that rb does for you n