[pypy-dev] Re: psyco in Python was: Minimal Python project

Edward K. Ream edream at tds.net
Fri Jan 17 19:59:59 CET 2003


 > Knowlege of values can better construct jump tables for switches.

Sure.  You could get rid of the entire table.  This kind of trick is why I
mentioned constant folding.  The key questions concerning "runtime constant
folding" are:

1. how much work does it take to discover the particular value?
2. how much work does it take to generate code to use that particular value?
and most importantly,
3. how much work does it take to _reuse_ the "specified" code?

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edream at tds.net
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------





More information about the Pypy-dev mailing list