-
-
Save anonymous/e531394bbda389e4990f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gevent.pool import Pool | |
def demo(): | |
cdef int SIZE = 655350 | |
pool = Pool(SIZE) | |
def incr(int n): | |
print n+1 | |
for i from 0<=i<SIZE: | |
# pool.wait_available() | |
pool.spawn(incr, i) | |
pool.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment