[Insight-users] Performance of ModifiedTime increments

Sean McBride sean at rogue-research.com
Wed Mar 12 16:45:53 EDT 2008


On 3/12/08 7:57 PM, Tom Vercauteren said:

>This caused
>a major slow-down when running several threads. The problem was
>originating from the mutex lock in itkTimeStamp.cxx:

I observed the same bottleneck several months ago.

>I saw that several other libraries (e.g. boost, QT, ..) are using
>atomic operations for that purpose. 

itkTimeStamp does too, but only on Windows and Mac.  Which OS are you
using?  Which version of ITK?

>It seems that this can be fairly
>easily done at least on gcc by using the __atomic_add function in the
>atomicity.h header file (see atomic_count.hpp in boost for a
>cross-platform implementation).

Indeed.  Care to try and submit a bug with patch?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



More information about the Insight-users mailing list