Re: Help on Interpreting profiles (while loop vs recursive function)

2018-05-17 Thread Lifepillar
On 16/05/2018 21:09, Lifepillar wrote: I wanted to profile the performance of a while loop vs a recursive function, so I wrote two functions, Iter() and Rec(), computing the same value (full code at the end of the message). The execution took ~4s, but Rec()'s measured times were (full profile

Help on Interpreting profiles (while loop vs recursive function)

2018-05-16 Thread Lifepillar
I wanted to profile the performance of a while loop vs a recursive function, so I wrote two functions, Iter() and Rec(), computing the same value (full code at the end of the message). The execution took ~4s, but Rec()'s measured times were (full profile at the end of the message): FUNCTION