mirror of https://github.com/ekimekim/wubloader
get_best_segments: Let other things run
get_best_segments can sometimes take a very long time, we don't want to stop other work from happening while it's ongoing. So we ask gevent to run other things until there's no other work to do, then we do one hour, then check back with gevent again. In combination with the performance improvements, this should mean we don't block other things from running for more than a few hundred ms at most.pull/35/head
parent
bf08aa29b8
commit
997c1242b2
Loading…
Reference in New Issue