3 ms·
Fun fact: Google recommend against using map/reduce :) http://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=Deprecated_Language_Features#Depr
by willvarfar 15y ago
Fun fact: Google recommend against using map/reduce :)
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=Deprecated_Language_Features#Deprecated_Language_Features http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...
Oh, not different map/reduce? ;)
- AncientPC 15y agoOne of the nice things about using map() is multiprocessing.Pool.map() can be a drop-in replacement. OTOH, map() does otherwise have a little overhead compared to list comprehension.