[pypy-dev] Questions for Armin
pedronis at bluewin.ch
Sat Jan 18 20:17:34 CET 2003
From: "Armin Rigo" <arigo at tunes.org>
> > 3. True or false: adding more state information to psyco (in order to
> > discover more runtime values) will slow down psyco_compatible.
> This is true. The more you run-time values you want to "discover" (I say
> "promote to compile-time"), the more versions of the same code you will get,
> and the slower psyco_compatible() will be (further slowing down compilation,
> but not execution proper, as seen above).
at least for method dispatching/lookup some kind of sampling in the spirit of
polymorphic inline caches can help distinguish whether there are a one to few
relevant cases that are worth to specialize for, or e.g. implementing dispatch
with simply a monomorphic inline cache has a more reasonable (especially in
More information about the Pypy-dev