parse-time optimizations
jcm
grumble at usa.net
Wed May 30 11:26:18 EDT 2001
Thomas Wouters <thomas at xs4all.net> wrote:
> On Wed, May 30, 2001 at 01:54:11PM +0000, jcm wrote:
>> This is an unambiguous situation. Don't just think of the program
>> text--these transformations would be done on the parse-tree. In
>> Python '+' is left-associative. We're talking about simple,
>> well-understood optimizations. The reason I am advocating these in
>> particular is because they can be done without heavyweight semantic
>> analysis.
> Read back in this thread. Michael Hudson already reported that his
> bytecodehacks packages already has a module to do constant-folding
> optimizations. He also says it isn't worth much :) Have you tried it out,
> yet ?
I'm not looking for a personal solution. My intent is to make the
Python interpreter/compiler better.
More information about the Python-list
mailing list