Newsgroups: comp.lang.python
From: Tim Peters <tim....@comcast.net>
Date: Fri, 10 May 2002 11:52:42 -0400
Local: Fri, May 10 2002 11:52 am
Subject: RE: Simple question about how the optimizer works
[Andrew Dalke, on "optimization"]
> ... That was before we tried any <wink>. One of my coworkers decided they were > Given the limited resources for Python development, how much time > should be spent on this? I think very little. As Tim Peters once > pointed out, there haven't been problems with Python's optimization > code <wink>. tired of seeing LOAD_CONST followed by UNARY_NEGATIVE whenever they had a negative literal in the source (like -4 or -1.23), and changed the compiler to store the negation of the literal instead, leaving just LOAD_CONST at run time. We do that now, but it introduced several bugs, and the process of stumbling The code today looks like this: if ((childtype == PLUS || childtype == MINUS || childtype == TILDE) As that strongly hints, CPython's intermediate code representation is a You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||