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


Groups > comp.lang.python > #10752

Re: Early binding as an option

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'help?': 0.03; 'suppose': 0.05; 'sure.': 0.05; 'compiler': 0.07; 'namespace': 0.09; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ideas?': 0.16; 'len': 0.16; 'lot;': 0.16; 'subject:Early': 0.16; 'object,': 0.16; 'pm,': 0.16; 'aug': 0.19; 'operations.': 0.19; 'header:In-Reply-To:1': 0.22; 'tue,': 0.23; 'string': 0.26; 'message-id:@mail.gmail.com': 0.28; 'replaced': 0.29; 'object': 0.30; "it'd": 0.30; 'chris': 0.32; 'done,': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.34; 'normally': 0.34; "isn't": 0.35; 'actual': 0.35; 'doing': 0.37; 'but': 0.37; 'could': 0.37; 'received:google.com': 0.38; 'received:209.85.161': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'help': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'where': 0.40; 'kind': 0.60; 'address': 0.61; 'straight': 0.66; 'introduce': 0.79; 'profiling': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4qL0fkfV3zg8eEx1jDN539KqnL4nbL4yUDq5JMlMk1E=; b=oauvxVXaMbE4ycvmDU9eRc7X82OhA6CMMyEereaNx0743bd0MgD7VvL4RsCXOQPHiZ a8y9drt7+9+r4Jv7QyvZstJcT6Hheg++miPN+d1vw5sFxi/JU+DQoz0uHoXJb19Q16Mt lFLVtwqYDFctokKmEVDDz7eLEOIhg3pKQYHcY=
MIME-Version 1.0
In-Reply-To <4E38315C.1000102@jollybox.de>
References <CAPTjJmpWN1Tq-46UoHjh_-q9ahkivTWmLJR3_eF9iThHwXQnhA@mail.gmail.com> <4E38315C.1000102@jollybox.de>
Date Tue, 2 Aug 2011 18:42:01 +0100
Subject Re: Early binding as an option
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1794.1312306923.1164.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312306923 news.xs4all.nl 23967 [2001:888:2000:d::a6]:45490
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10752

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web