Sergey Kishchenko <[email protected]> added the comment:

It can be two separate issues as far as I can see. Using try..except in
generators makes pypy use a lot of memory (70 mb just for arigo's example on my
box). But it still doesn't consume more than 70 mb so I can GC is doing fine 
here.

On the other hand, having nesting generator calls from the arigo's example is
what's taking pypy on it's knees. On my box

def gen1(n):
    if n > 0:
        g = gen1(n-1)
        next(g)
    yield 5
while 1:
    next(gen1(100))

consumes 1.5gb RAM in seconds and keeps eating memory until stopped. The same
script started through pyinteractive.py uses only 72 MB so I suppose there is
the issue with the translated code/translator

----------
nosy: +tilarids

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1282>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to