Message282794
Inline PyEval_EvalFrameEx() in callers. The PEP 523 modified PyEval_EvalFrameEx(): it's now an indirection to interp->eval_frame().
Inline the call in performance critical code. Leave PyEval_EvalFrame() unchanged, this function is only kept for backward compatibility (and so not important for performance).
I pushed directly my change as the revision 99c34e47348b, but it broke test_gdb. So now I doubt that it's 100% "safe" to inline the code. Outside test_gdb, does something else rely on PyEval_EvalFrameEx()? So I chose to open an issue to discuss the change. By "something", I'm thinking to Pyjion :-)
Attached patch updates also python-gdb.py to fix test_gdb. |
|
Date |
User |
Action |
Args |
2016-12-09 18:00:50 | vstinner | set | recipients:
+ vstinner, brett.cannon, serhiy.storchaka |
2016-12-09 18:00:50 | vstinner | set | messageid: <1481306450.73.0.124326033178.issue28924@psf.upfronthosting.co.za> |
2016-12-09 18:00:50 | vstinner | link | issue28924 messages |
2016-12-09 18:00:50 | vstinner | create | |
|