Proposals:Template Meta Programming Unrolling Loops
From KitwarePublicJump to navigationJump to search
Many classes in ITK perform for-loops of small number of elements whose size is known at compile time. These for loops are bottlenecks of performance. Computation time can be improved by unrolling them at compilation time.
Introduce Template Meta Programming techniques for unrolling loops in heavily used classes
Template Meta-Programming entry in the Wikipedia
It turned out that gcc in -O3 manages to unroll many of the loops that we were targeting to unroll by using template Meta Programming. Therefore at this point, there is no visible benefit on investing in implementing this technique.