On Mon, 20 Dec 2010, Esben Høgh-Rasmussen wrote:
In my opinion, TLD (thread local data) is over engineering and not
generally available. Why not just reserve a small buffer on the stack and
pass it to a thread-safe version of the conversion routine?
In what way is it not "generally available"? POSIX & Microsoft
Windows seems to cover quite a lot of the world's computing. Surely
over 99%.
There is not much substantial "engineering" behind it. In fact, it is
not much different (or is perhaps the same) than the stack approach
John Cuppit suggests.
cmsTransformBuf buf;
cmsDoTransformTS(src, dst, pix_count, &buf);
The single-pixel would simply be put in the buffer.
This works but of course is a new API and requires that
cmsTransformBuf remain consistent for the ABI. It does seem to offer
ultimate performance.
Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user