[issue10399] AST Optimization: inlining of function calls

2020-11-18 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue10399] AST Optimization: inlining of function calls

2020-08-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10399] AST Optimization: inlining of function calls

2020-08-11 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- nosy: +Yonatan Goldschmidt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10399] AST Optimization: inlining of function calls

2017-03-14 Thread Mateusz Bysiek
Changes by Mateusz Bysiek : -- nosy: +mbdevpl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue10399] AST Optimization: inlining of function calls

2017-01-29 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue10399] AST Optimization: inlining of function calls

2017-01-29 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailma

[issue10399] AST Optimization: inlining of function calls

2015-11-27 Thread STINNER Victor
STINNER Victor added the comment: "Can we resurrect this, perhaps by taking it up on python-dev?" I created a new "FAT Python" project to reimplement such kind of optimizations with a similar design (similar but different ;-)): https://faster-cpython.readthedocs.org/fat_python.html --

[issue10399] AST Optimization: inlining of function calls

2015-06-22 Thread Mark Lawrence
Mark Lawrence added the comment: I get the impression that there's a lot to be gained here, especially when compared to some of the micro-optimizations that are committed. Can we resurrect this, perhaps by taking it up on python-dev? Also msg121082 refers to a Globals cache patch posted on is

[issue10399] AST Optimization: inlining of function calls

2013-01-11 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10399] AST Optimization: inlining of function calls

2012-07-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10399] AST Optimization: inlining of function calls

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

[issue10399] AST Optimization: inlining of function calls

2012-07-18 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10399] AST Optimization: inlining of function calls

2012-07-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10399] AST Optimization: inlining of function calls

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

[issue10399] AST Optimization: inlining of function calls

2011-05-31 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10399] AST Optimization: inlining of function calls

2011-05-05 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue10399] AST Optimization: inlining of function calls

2011-04-13 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10399] AST Optimization: inlining of function calls

2011-04-12 Thread Ryan Kelly
Changes by Ryan Kelly : -- nosy: +rfk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue10399] AST Optimization: inlining of function calls

2010-12-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- assignee: -> dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10399] AST Optimization: inlining of function calls

2010-11-25 Thread Maciej Fijalkowski
Changes by Maciej Fijalkowski : -- nosy: +fijall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10399] AST Optimization: inlining of function calls

2010-11-25 Thread Armin Rigo
Armin Rigo added the comment: > But this seems to me like a contrived example: how often in real > code do people pass around these builtins, rather than calling > them directly? >From experience developing PyPy, every argument that goes "this theoretically >breaks obscure code, but who writes

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: py3k-ast-pyoptimize-2010-11-19-006.patch fixed up and committed to the branch as r86715; I'll work on that branch for the time being. -- ___ Python tracker

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: > If this a work in progress, you could create an SVN branch in the > sandbox (you can then use svnmerge to avoid diverging too much from > mainline) or an hg repo. Good idea; I've created branch "dmalcolm-ast-optimization-branch" (of py3k) on svn.python.org for

[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Neal Norwitz
Neal Norwitz added the comment: There is some precedent for allowing minor differences in -O mode. http://mail.python.org/pipermail/python-dev/2008-February/077193.html I think we should push this to see how practical we can make it. Dave, this is great work, I'm really interested to see you co

[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reading through this. > There are a couple places you mention not doing the optimization when > specific functions are used (e.g. dir, globals, locals), how exactly do you > verify that, given those functions could be bound to any name? I don't: I'm o

[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Alex
Alex added the comment: There are a couple places you mention not doing the optimization when specific functions are used (e.g. dir, globals, locals), how exactly do you verify that, given those functions could be bound to any name? -- ___ Python t

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sorry again for another epic-length comment... > > I'm attaching the latest work-in-progress on this. If this a work in progress, you could create an SVN branch in the sandbox (you can then use svnmerge to avoid diverging too much from mainline) or an hg rep

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. The code is still fairly messy (embarrasingly so in places), but it's better to have it out in public in this tracker than stuck on my hard drive. Symbol tables =

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Brett Cannon
Brett Cannon added the comment: No, it's rather Linux and tool specific to go into ast.py. But adding it to the Tools/ directory makes sense. -- ___ Python tracker ___

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Third, for that Graphviz output, was anything special required? If so, > I would toss the code into Tools for others to benefit from. It's merely the "to_dot" function from Lib/__optimizer__.py (which turns an AST into .dot source code), followed by "dot_to_pn

[issue10399] AST Optimization: inlining of function calls

2010-11-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10399] AST Optimization: inlining of function calls

2010-11-13 Thread Brett Cannon
Brett Cannon added the comment: While I have nothing to say directly about the inline optimization, I do have some stuff to say about moving to AST optimizations. First, doing in Python is a good thing. It not only makes prototyping easier, but it allows other VMs to use the optimizations w/o

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Alex
Alex added the comment: Just a thought: it's possible to cover all the cases properly with inlining (locals, globals (even with cross module inlining), tracebacks, sys._getframe(), etc.), however I think you're going to find that manually managing all of those is going to quickly drive you up

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Globals cache patch posted on issue10401. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I understand it, functions are "name-resolved" before the arguments are evaluated, There is no difference between resolution of function names and of other names. For example, global names (LOAD_GLOBAL) are resolved entirely at runtime (just before the fu

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19585/after.png ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19584/before.png ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
New submission from Dave Malcolm : In msg#120541 of issue#1346238 Raymond suggested to "aim high", so here goes... I'm opening this as a separate bug as it's a very different approach to the patches in that bug; adding those on the nosy list for that bug. Sorry in advance about the epic lengt