Profiling, recursive func slower than imperative, normal?

Terry Reedy tjreedy at udel.edu
Thu Apr 17 14:08:08 EDT 2008


|In that case, I'm not sure you get any performance gain since the queue
|has basically the same role as the stack in the recursive version. A
|definitive answer calls for an actual test, though.

The potential gain comes from not incurring function call overhead and only 
queueing or stacking the exact data needed. 






More information about the Python-list mailing list