[summerofcode] High-level python optimizer.
Vova
physics at list.ru
Sun Jun 12 19:59:10 CEST 2005
Hello Armin !
On Sunday 12 June 2005 21:28, you wrote:
> Hi Vova,
> On Sun, Jun 12, 2005 at 04:16:14PM +0400, Vova wrote:
> > All of this is either used quite rarely or used in predictable way (i.e.
> > programer can manually supply analyser with information using some kind
> > of code annotations). The only question is does given speed-up costs
> > annotation effort. I believe that it do.
>
> I just wanted to make this point. You are effectively targetting a
> subset of Python in which the programmer cannot use some of the
> reflective features, and/or in which he must add annotations to guide or
> give promizes to the type inferencer. This is all good as long as it's
> clear from the beginning.
Ok, let it be.
My optimizer will never hurt any program regardless the features it uses.
Moreover it can do some optimization to any program (at least optimizations
that touches only local variables and branches where no unknown code would
had be executed). But to get the best one must either use it for complete
code or add annotations about absent code. I'll try to make adding
annotations as easier as possible.
> > And again: how many programs are actually executing unknown code ?
> Most large programs use them at least a little bit. For example, many
> known frameworks are full of import-time hacks.
>
If it uses them only a bit than adding annotations will not be vary hard.
Anyway, thanks for your attention and explanations !
--
Best regards,
Vladimir
More information about the summerofcode
mailing list