Hi Rodrigo, On Mon, Sep 5, 2011 at 2:44 AM, Rodrigo Pinheiro Marques de Araújo <[email protected]> wrote: > I made a first version of stackless with continulets. Attached the patch and > the complete stackless.py file for review. Someone have time for look the > patch?
Great! Thanks a lot. All of test_stackless.py passes, so I'm checking in the patch. If someone wants to give it a more thorough review he is welcome :-) Regarding performance: it's already good to get 1/3 performance improvement. I think it corresponds well to the removal of the extra levels: indeed, our JIT should be good at "compressing" this overhead (if not completely removing), so getting an extra 33% by manual rewriting sounds reasonable to me. About recursion_helper.py: ah, good idea to turn it into a decorator. Maybe we could include it e.g. in the stackless module. But of course the best thing to do would be to have the effect semi-automatically, e.g. adding a way to ask the interpreter "when you have consumed more than X% of the stack, automatically do the next call via a switch to this continulet"... A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
