--without-threads implications on preformance

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
magick
Site Admin
Posts: 11062
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-03-21T08:50:53-07:00

AcquireSemaphore() is light-weight. There is a fair bit of overhead when starting ImageMagick so if you have a short quick task the start-up costs are high. The start-up cost becomes negligible for longer running tasks.

You can initalize any of the ImageMagick lists before threading is enabled by calling the Get????Info("*",exception) method for the list. For example, to preload the type configuration list, call
  • GetTypeInfo("*",exception);
before you fire up threads. However, without threading enabled in ImageMagick, it will probably blow up at some point if you fire multiple threads, perhaps when the program is exiting.

Post Reply