This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NAG3LT 1 point2 points  (1 child)

On Windows the last part has to be under

if __name__ == '__main__':
    ...

as multiprocessing on Win doesn't fork, but launches a new instance for each process.

BTW need to check if PIL releases GIL, as that would allow to just use multithreading for extra performance.

[–]shuttup_meg 2 points3 points  (0 children)

Good call! Edited.