This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author remi.lapeyre
Recipients brendon-zhang@hotmail.com, remi.lapeyre, rhettinger, vstinner
Date 2020-04-09.13:21:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586438491.95.0.894221600941.issue40225@roundup.psfhosted.org>
In-reply-to
Content
I'm unable to run the example as it segfaults on my computer because of the linear recursion but do you notice the same behavior with:

from time import time
from sys import setrecursionlimit

setrecursionlimit(10000000)

def recurse(i):
    if i < 0:
        return
    recurse(i-1)

if __name__ == '__main__':
    lo = 8
    hi = 16
    t = {}

    for sh in range(lo, hi):
        b4 = time()
        x = 1 << sh
        ret = recurse(x)
        after = time()
        t[sh] = after - b4

    for sh in range(lo+1, hi):
        print(t[sh] / t[sh-1])
History
Date User Action Args
2020-04-09 13:21:31remi.lapeyresetrecipients: + remi.lapeyre, rhettinger, vstinner, brendon-zhang@hotmail.com
2020-04-09 13:21:31remi.lapeyresetmessageid: <1586438491.95.0.894221600941.issue40225@roundup.psfhosted.org>
2020-04-09 13:21:31remi.lapeyrelinkissue40225 messages
2020-04-09 13:21:31remi.lapeyrecreate