[Insight-developers] SmartPointer comparison operators

Aljaz Noe noe@grasp.cis.upenn.edu
Thu, 9 May 2002 10:45:41 -0400


> Constructing and assigning SmartPointers require a Mutex operation.
> This can be expensive in computing time.

I know. I suspected this a long time ago. That's why the whole FEM library
can be compiled either with the use of SP or not, by simply setting a flag
in CMake. If you want speed, you don't use SP. On the other hand, if you
need/want SP, you can still use them.

The previously described problems only occurred when the SP were used.

Aljaz