Sublime Forum

[BUG] Linux, missing multiprocessing

#1

Greetings.

The bundled python2.6 API miss some important modules on Linux, for example the _multiprocessing module is not built as a built-in and dyn-libs are not added into the zip package (obviously) so is not possible to use multiprocessing on Linux without horrible hacks.

I’d like to know if this is planned to be fixed because I want to avoid the GIL on Linux.

Ty very much.

0 Likes

#2

I don’t think multiprocessing could work on Windows box. As fork() doesn’t exists on Windows, multiprocessing run a new Python interpreter for each new process, which is impossible in ST2.
It could work on Linux, but I suppose that when you call fork() from ST2, it’s the entire process that is forked, not only Python interpreter, so it’s far from optimal.

Why don’t you call an external Python script using subprocess ?

0 Likes