Turn you functional tools to super.
Provides smap
, sfilter
, sreduce
functions to do I/O bound operations effectively.
NOTE:not for CPU bound operations
from supertools import smap, sfilter
def io_bound_function(arg):
# do something here
pass
smap(io_bound_function, args)