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

[Lcms-user] Threading performance in LCMS2

2013-05-13 Thread Richard Hughes
Hi all, 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 possible. I figured the fastest way to do t