Comment on I wish
Karyoplasma@discuss.tchncs.de 10 months agoDon’t use recursion. Each call will need to allocate a new stack frame which leads to being slower than an iterative approach in pretty much any language.
Comment on I wish
Karyoplasma@discuss.tchncs.de 10 months agoDon’t use recursion. Each call will need to allocate a new stack frame which leads to being slower than an iterative approach in pretty much any language.
recapitated@lemmy.world 10 months ago
TCO baby
257m@sh.itjust.works 10 months ago
Since when did Python have tail call optimization?