in reply to print qq once or many times

Thanks for the comments and the reminder to keep it all maintainable.

I did run benchmarking which showed there is essentially no difference between the different approached (or at least no difference for less than a million lines of code). The answer I got was:

(warning: too few iterations for a reliable count) Rate Name1 Name2 Name1 999999999999999872/s -- 0% Name2 999999999999999872/s 0% --

I figure this means they're all the same :o)

Thanks again, Moggs

Replies are listed 'Best First'.
Re^2: print qq once or many times
by Anonymous Monk on Dec 17, 2010 at 00:36 UTC
    I figure this means they're all the same :o)

    It also means you did not use cmpthese( -3 , ... you should share the benchmark :)