libjpeg thread safe constraint is not must

yzh杨振宏 <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <7354BE8391D7C34B9384A115F0B5444A209F5EBC@SVR2115HP380.cn1.global.ctrip.com>
Hi,Bob,
We find GraphicsMagick doesn't work well if the program self is multi thread. This is almost certainly because the JPEG coder has been marked as not thread safe. e.g.,

entry->thread_support=False; /* libjpeg is not thread safe */

We experiment by removing this constraint and see apparent performance improvement.

Note that the thread safe assumption is not must for JPEG_LIB_VERSION >= 80 and LIBJPEG_TURBO_VERSION, and ImageMagick has remove the constraint since 6.8.9-8 in Sep 2014. See:
https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=25495

Could GM remove this constraint in next release to benefit whole community, as many people will use GM in multi-thread scenario like us as an image http server.

Best regards.
zhyang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.