I came across couple of plugin tutorials and I feel confused about correct use of Python threads in SublimeText plugin development.
It is the common issue with Python GIL which doesn't allow two threads to do calculations at the same time (at least with CPython interpreter, which I guess is used inside Sublime?..). E.g. you can have N threads making IO (say, downloading pages) at a time, but only one thread actually doing some CPU extensive work, like parsing the page's content.
So, what is the sense in running CPU extensive operations in separate thread in plugin (like walking through project directories and examining files for further autocompletion) if it still will make the whole interpreter wait for it?
How is it internally organized in SublimeText and how thus to use threads correctly?
Thank you in advance,