[Insight-developers] Image Orientation & Profiling Template Meta-Programming (loop unrolling)

Bill Lorensen bill.lorensen at gmail.com
Sun Oct 19 17:38:15 EDT 2008


Luis,

Do we have a Windows platform where we can do the same test? Assuming
it results in similar improvements, I think we should eliminate the
old code and the TEMPLATE_META_PROGRAMMING  flag. Keep the code that
is enabled when TEMPLATE_META_PROGRAMMING is ON.

Bill

On Sun, Oct 19, 2008 at 4:57 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Bill,
>
> Here are the results of profiling the combined performance of
>
> TransformPhysicalPointToIndex
> TransformIndexToPhysicalPoint
>
> in "dagobah"
>
>  A Dell Laptop E6500,
> Dual Core,  T9600  @ 2.80GHz,
> 4Gb RAM,
>
> running
>
> Ubuntu Linux 8.0.4
> gcc 4.2.3
> with ITK compiled in Release mode
> ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE = ON
>
>
> (times are reported in "seconds"):
>
> -----------------------------------------------------
> TEMPLATE META_PROGRAMMING          OFF         ON
> -----------------------------------------------------
> itkOrientedImageProfileTest1     1.28502    0.120793
> itkOrientedImageProfileTest2     1.57651    0.106724
> itkOrientedImageProfileTest3     1.26905    0.111022
> -----------------------------------------------------
>
> That is,
> about a 10X factor faster when TEMPLATE META-PROGRAMMING is ON.
>
>
> In this platform,
> this flag is definitely something to keep ON.
>
>
>     Luis
>
>
>


More information about the Insight-developers mailing list