Re: [Lcms-user] Threading performance in LCMS2

2013-05-30 Thread Sebastien Leon
Hi Richard, Sorry to reply so late about this thread but I was away for few weeks. > I'm trying to make my transform go fast. I've got a 1920x1080 > RGB image being transformed from sRGB to the display profile. Ok, sounds very similar to what I have to do in my application. (I also had to manage

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread Gerhard Fuernkranz
Am 13.05.2013 23:17, schrieb Bob Friesenhahn: > Are you sharing the same transform (created by one thread), or are you > creating an independent transform for each thread (ideally created by the > thread which uses it)? Creating the transform can consume considerable time > so it can be useful

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread Robin Watts
On 14/05/2013 09:20, Richard Hughes wrote: > Other than profiling, how do we know if it's chosen a built-in version > rather than the generic version? I initially used profiling, but then I added some code to capture what transforms were used. This is also on the same branch I pointed you at bef

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread Bob Friesenhahn
On Tue, 14 May 2013, Richard Hughes wrote: > >> Are you sharing the same transform (created by one thread), or are you >> creating an independent transform for each thread (ideally created by the >> thread which uses it)? > > One transform shared between threads. I can try to create multiple > tran

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread Richard Hughes
On 14 May 2013 00:32, Robin Watts wrote: > Before you dive into the complexities of multithreading etc, it would > seem sensible to ensure you are getting the best possible performance > out of the transform routine in the first place. Makes sense. > LCMS has various different transform routines

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread jcupitt
On 14 May 2013 09:12, Richard Hughes wrote: > On 13 May 2013 22:17, Bob Friesenhahn wrote: >> What specific CPU are you using? > > I'm profiling on Intel i7 M620 @ 2.67GHz That's only a two-core CPU, I think, though each core can have two threads. You may or may not get much benefit from hyperth

Re: [Lcms-user] Threading performance in LCMS2

2013-05-14 Thread Richard Hughes
On 13 May 2013 22:17, Bob Friesenhahn wrote: > What specific CPU are you using? I'm profiling on Intel i7 M620 @ 2.67GHz > It would be good to share the ICC profile you are using for testing since it > can make a difference. If lcms is only doing indexed lookups for the > profile, then memory a

Re: [Lcms-user] Threading performance in LCMS2

2013-05-13 Thread Robin Watts
On 13/05/2013 22:01, Richard Hughes wrote: > I'm trying to make my transform go fast. I've got a 1920x1080 RGB > image being transformed from sRGB to the display profile. I've got a > quad core processor on my development box, no shaders or GPU, and I'm > trying to do the transform as quickly as po

Re: [Lcms-user] Threading performance in LCMS2

2013-05-13 Thread Bob Friesenhahn
On Mon, 13 May 2013, Richard Hughes wrote: > > I figured 4 threads should be ~4x faster than using 1 thread (in the > second case we should only have 4 threads, so not much overhead), but > no matter the value of max_threads or 'n' I can only achieve a ~1.9x > speed-up. I've tried with and without

Re: [Lcms-user] threading

2006-05-17 Thread Marti
Marti - Original Message - From: "Louis Solomon [SteelBytes]" <[EMAIL PROTECTED]> To: "lcms-user" Sent: Tuesday, May 16, 2006 2:18 PM Subject: Re: [Lcms-user] threading Incoming 1.16 will have more support for multithreading, though. and what's the ETA on 1.16? 1w

Re: [Lcms-user] threading

2006-05-16 Thread Louis Solomon [SteelBytes]
Incoming 1.16 will have more support for multithreading, though. and what's the ETA on 1.16? 1week? 1month? 6months? Louis Solomon www.SteelBytes.com --- Using Tomcat but need to do more? Need to support web services, security? Get stuff d

Re: [Lcms-user] threading

2006-05-16 Thread John Cupitt
On 5/13/06, Marti <[EMAIL PROTECTED]> wrote: It works fine as long as you use just one color transform per thread. Sharing transforms between threads doesn't work because the 1-pixel cache. So you must, either, use just one tranform per thread or inhibit the caching by using cmsFLAGS_NOTCACHE. I

Re: [Lcms-user] threading

2006-05-16 Thread Marti
ards Marti Maria The littleCMS project http://www.littlecms.com - Original Message - From: "Boudewijn Rempt" <[EMAIL PROTECTED]> To: Sent: Friday, May 12, 2006 9:06 PM Subject: Re: [Lcms-user] threading On Friday 12 May 2006 17:04, John Cupitt wrote: Hello all, I'

Re: [Lcms-user] threading

2006-05-16 Thread Boudewijn Rempt
On Friday 12 May 2006 17:04, John Cupitt wrote: > Hello all, > > I've just noticed cmsDoTransform() isn't threadsafe (when I found > random image corruption on my SMP box, heh). > > Has any thought gone into making a threadsafe version? If I looked at > this, would there be interest in patches? Ee

Re: [Lcms-user] threading

2006-05-13 Thread Boudewijn Rempt
On Saturday 13 May 2006 15:18, Marti wrote: > Hi, > > >Eeek... I was wondering about this after I got some crashes in an > >experimental > > version of Krita, too, but I rather hoped it wasn't this problem. > > It works fine as long as you use just one color transform per thread. > Sharing transfor

Re: [Lcms-user] threading

2006-05-13 Thread John Cupitt
On 5/13/06, Bob Friesenhahn <[EMAIL PROTECTED]> wrote: On Fri, 12 May 2006, John Cupitt wrote: > I've just noticed cmsDoTransform() isn't threadsafe (when I found > random image corruption on my SMP box, heh). What part of the code is not thread safe? Are you sure that the thread safety problem

Re: [Lcms-user] threading

2006-05-12 Thread Bob Friesenhahn
On Fri, 12 May 2006, John Cupitt wrote: I've just noticed cmsDoTransform() isn't threadsafe (when I found random image corruption on my SMP box, heh). What part of the code is not thread safe? Are you sure that the thread safety problem is not a problem with your own application or the way