Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10752 > unrolled thread

Re: Early binding as an option

Started byChris Angelico <rosuav@gmail.com>
First post2011-08-02 18:42 +0100
Last post2011-08-02 18:42 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Early binding as an option Chris Angelico <rosuav@gmail.com> - 2011-08-02 18:42 +0100

#10752 — Re: Early binding as an option

FromChris Angelico <rosuav@gmail.com>
Date2011-08-02 18:42 +0100
SubjectRe: Early binding as an option
Message-ID<mailman.1794.1312306923.1164.python-list@python.org>
On Tue, Aug 2, 2011 at 6:18 PM, Thomas Jollans <t@jollybox.de> wrote:
> I suppose it would be possible to introduce a kind of "constant
> globals" namespace that a JIT compiler could then use to optimise, but
> how much would this help?

Surely it must help a lot; looking up names is string operations. If
"len" could be replaced with "@10794928" where 10794928 is the actual
address of the len object, then it'd be doing no work that isn't
normally done, and would go straight to the object and call it.

But I don't really know how to go about profiling this to be sure. Any ideas?

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web