[Twisted-Python] [OT] Make Python Faster
Skip Montanaro has an xmlrpc server set up to collect information on Python byte code occurrence frequencies. With data from enough sources, some useful information about optimizations that can be made to Python might be extracted. Attached is a patch that causes twistd to spill its guts onto his server when it shuts down. It requires an interpreter with sys.getdxp, which is only available if Python is built with DYNAMIC_EXECUTION_PROFILE, and optionally DXPAIRS, defined (it won't break anything if getdxp isn't available, it just won't work). There is an "email" field required, which I have left as a generic string - please set it to an actual email by which you can be contacted if you intend to use it. I don't propose this for inclusion with Twisted, but if anyone wants to apply it to their local copy and run real apps with it, it would be helpful to Python, and I'm sure Skip would appreciate the extra data points. For the record, I'm currently running my instances of Twisted.mail and Twisted.names with this, and I'll probably set up my Pynfo bot to use it as well. Jp -- A sad spectacle. If they be inhabited, what a scope for misery and folly. If they be not inhabited, what a waste of space. -- Thomas Carlyle, looking at the stars -- up 20 days, 8:29, 10 users, load average: 0.24, 0.33, 0.37
On Fri, Feb 28, 2003 at 11:20:00PM -0500, Jp Calderone wrote: Helps to attach the file. Jp -- up 20 days, 8:29, 10 users, load average: 0.24, 0.33, 0.37
On Fri, 28 Feb 2003 23:20:00 -0500, Jp Calderone
I don't propose this for inclusion with Twisted, but if anyone wants to apply it to their local copy and run real apps with it, it would be helpful to Python, and I'm sure Skip would appreciate the extra data points.
I disagree. This is exactly the kind of thing that we should make easy, to give the Python developers, and ourselves, as much useful information as we can about the community. It should perhaps not be a default, but having a flag to twistd (maybe --profile-me-harder?) so that people have a "one click" way to report their run-time results would increase the number of people using it, I'm sure. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |
On Fri, Feb 28, 2003 at 11:08:19PM -0600, Glyph Lefkowitz wrote:
On Fri, 28 Feb 2003 23:20:00 -0500, Jp Calderone
wrote: I don't propose this for inclusion with Twisted, but if anyone wants to apply it to their local copy and run real apps with it, it would be helpful to Python, and I'm sure Skip would appreciate the extra data points.
I disagree. This is exactly the kind of thing that we should make easy, to give the Python developers, and ourselves, as much useful information as we can about the community. It should perhaps not be a default, but having a flag to twistd (maybe --profile-me-harder?) so that people have a "one click" way to report their run-time results would increase the number of people using it, I'm sure.
Thy will be done! Jp -- http://catandgirl.com/view.cgi?44 -- up 20 days, 22:29, 4 users, load average: 0.45, 0.27, 0.26
participants (2)
-
Glyph Lefkowitz
-
Jp Calderone