Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is it there a control or something to assign more resources to script execution. Or the only option is to improve script's code performance?.
If blender freezes while script execution, you should check performance using build-in modules.
In some cases you can cache function return using functools.lru_cache.
The one way to get more resources is using multiprocessing.