[issue5000] multiprocessing - Pool.map() slower about 5 times than map() on 2 cores machine

2009-01-19 Thread 0x666
New submission from 0x666 vasiliauskas.agn...@gmail.com: I think something wrong with implementation of multiprocessing module. I`ve run this very simple test on my machine (core 2, vista): import multiprocessing as mul from time import time def f(x): return x*x if __name__ == '__main__

[issue5000] multiprocessing - Pool.map() slower about 5 times than map() on 2 cores machine

2009-01-19 Thread 0x666
0x666 vasiliauskas.agn...@gmail.com added the comment: Thanks for quick response and for informative answers, especially thanks to Antoine Pitrou/Amaury Forgeot. p.s. By seting bigger range - range(15) and elements = 1000, I was able to get speed-up factor up to 1.8. Wow, I`m amazed :-) Good