[issue13607] Move generator specific sections out of ceval.

2018-09-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue13607] Move generator specific sections out of ceval.

2018-02-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue13607] Move generator specific sections out of ceval.

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The WHY_* codes are gone in 3.8 (see issue17611). Exception state was moved from frame to generator in 3.7 (see issue25612). Can some parts of the patch be applied to the current code? Or it is completely outdated? -- nosy: +serhiy.storchaka _

[issue13607] Move generator specific sections out of ceval.

2012-10-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13607] Move generator specific sections out of ceval.

2012-02-13 Thread Mark Shannon
Mark Shannon added the comment: Why do the codes used internally by ceval have to be the same as those made public? Have you considered returning the exit code directly, rather than adding another field to frameobject? yieldfrom can be handled in a similar way to yield by returning the iterat

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Ron Adam added the comment: Updated patch with suggested changes. It also has a cleaned up fast_block_end section. Concerning speed. What happens is (as Tim and Raymond have pointed out) that we can make some things a little faster, in exchange for other things being a little slower. You ca

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file24047/f_why1.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13607] Move generator specific sections out of ceval.

2011-12-21 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13607] Move generator specific sections out of ceval.

2011-12-21 Thread Ron Adam
Ron Adam added the comment: I think the time benefits I saw are dependent on how the C code is compiled. So it may be different on different compilers or the same compiler with only a very minor change. Some of the things I've noticed... A switch is sometimes slower if it has a "default:" b

[issue13607] Move generator specific sections out of ceval.

2011-12-20 Thread Nick Coghlan
Nick Coghlan added the comment: The thing that most appeals to me with this concept is moving closer to making it possible to experiment with generator-style functionality in *extension* modules (albeit extension modules that are coupled to private CPython APIs). So, for me, "not worse than t

[issue13607] Move generator specific sections out of ceval.

2011-12-20 Thread Meador Inge
Meador Inge added the comment: With the new patch I see no benefits on the same micro-benchmarks you posted (it is even slower for the smaller case) on a quad-core 64-bit F15 box: BEFORE: $ ./python -mtimeit "def y(n):" " for x in range(n):" "yield x" "sum(y(10))" 100 loops, best o

[issue13607] Move generator specific sections out of ceval.

2011-12-20 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
Ron Adam added the comment: New diff file. The main difference is I moved the saved why value to the tstate object instead of the frame object as why_exit. I'm not seeing the time savings now for some reason. Maybe the previous increase was a case of coincidental noise. (?) Still looking f

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file23969/f_why.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Seems mostly fine to me. -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bu

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13607] Move generator specific sections out of ceval.

2011-12-16 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13607] Move generator specific sections out of ceval.

2011-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson, ncoghlan stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue13607] Move generator specific sections out of ceval.

2011-12-15 Thread Ron Adam
Ron Adam added the comment: A simple test to show the difference. BEFORE: $ python3 -mtimeit "def y(n):" " for x in range(n):" "yield x" "sum(y(10))" 10 loops, best of 3: 3.87 usec per loop $ python3 -mtimeit "def y(n):" " for x in range(n):" "yield x" "sum(y(100))" 10 lo

[issue13607] Move generator specific sections out of ceval.

2011-12-15 Thread Ron Adam
New submission from Ron Adam : The following changes cleanup the eval loop and result in a pretty solid 2 to 3% improvement in pybench for me. And it is about 5% faster for long generators. * Change why enum type to int and #defines. And moved the why defines to opcode.h so that they can be