The different performance of Python multiprocessing.Pool on MacOS and Linux systems
问题 I'm a beginner in Python. I used multiprocessing.Pool in my project to imporve performance. Here's a snippet of code I use the multiprocessing.Pool. I build the pool at the starting of my resident server, and use the Pool.apply_async method every time when the server get a request : # build pool when server started mp.set_start_method('forkserver') self._driver_pool = Pool(processes=10) self._executor_pool = Pool(processes=30) # use pool every time get a request driver = driver_class(driver