Page 1 of 1

What is the penalty?

Posted: 2019-03-01T19:21:26-07:00
by daysofwonder

What's the penalty for `--disable-threads'? After upgrading the FreeBSD port of ImageMagick, I received a bug-report from a user, who was unable to use PerlMagick, because their perl was built without threads.

I'm thinking about simply adding `--disable-threads' to CONFIGURE_ARGS -- this seems to work with both threaded and non-threaded perl.

What is the penalty?

Could `configure', when it analyzes the available perl installation, also determine, whether threads are supported?..


Re: What is the penalty?

Posted: 2019-03-01T20:14:01-07:00
by fmw42
I am not an expert on all aspects, but if you disable threading, then the only penalty I know is some loss of speed. Some operations are threaded to utilize multiple processors to speed up operations. But the gains decrease as you use more processors. So you gain the most from the second processor with diminishing gains as you add more processors.