« Building slides for X… | Home | Improve your work liv… »

Multithreaded plugin functions can increase speed of Xojo application


Have you seen the "NSImageMBS multithreading" or "Threaded Encryption and Hashes" example projects in Xojo?


Do you notice that with 4 Xojo threads, the plugin can actually get 4 CPU cores busy and get work done faster?

Over the last releases we added quite a few MT methods. Those are plugin methods which perform work on a preemptive thread. The Xojo thread calling them yields CPU time to other threads while it waits for the preemptive thread to finish work. And if you use several threads in Xojo already, this will help you keep more CPU cores busy.

Here a list of all MT methods:
In general there are two types here. A method like CIImageMBS.imageWithDataMT may be used in several threads to get CPU cores busy and process a lot of images. Other functions like sharedAddressbookMT are just helping to avoid the GUI to stand still while a dialog is asking the user for permissions.

If you have ideas for other methods which could benefit from loading work off to another CPU core, please don't hesitate to contact us. The biggest plugin in space...
13 02 20 - 09:15