Comment on I wish
Karyoplasma@discuss.tchncs.de 1 year 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 1 year 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 1 year ago
TCO baby
257m@sh.itjust.works 1 year ago
Since when did Python have tail call optimization?