python-pathfinding icon indicating copy to clipboard operation
python-pathfinding copied to clipboard

speed up by using multiprocessing

Open brean opened this issue 8 years ago • 3 comments

inspired by easystarjs

brean avatar Nov 29 '17 10:11 brean

Also python 2 will die soon changing to the async-await syntax should not be a problem!

brean avatar May 23 '19 09:05 brean

From my understanding, asyncio in python is useful when you have IO bound operations such as reading files or sending HTTP requests. Pathfinding doesn't really have any of this as far as I can tell so don't think async would be a good match for it.

Threading seems like it would potentially be a better match although that's a whole different can of worms.

ClementJ18 avatar Jun 24 '23 21:06 ClementJ18

You are right, in Python multiprocessing would make more sense for cpu-bound operations like this.

brean avatar Jun 24 '23 21:06 brean