[SciPy-User] <transferred from Scipy-Dev>Re: Seeking help/ advice for applying functions

eat e.antero.tammi@gmail....
Tue Mar 9 15:50:43 CST 2010

Robert Kern <robert.kern <at> gmail.com> writes:

> On Tue, Mar 9, 2010 at 13:51, eat <e.antero.tammi <at> gmail.com> wrote:
> > Not only that I'm new to Scipy/ Numpy but I'm new to python aswell.
> > I think I assumed that once python functions get compiled they'll would be
> > (almost) as efficient than builtins.
> No, not at all. Python functions do not get compiled to machine code.
> They get compiled to Python bytecode, but that Python bytecode is
> interpreted. Python functions have tons of overhead compared to
> builtins.

Aha, so python does not have a mechanism to optimize bytecode (nor higher 
level code) inorder to get rid off the dynamic nature of code when needed.

Well, I'll be better to go back to the drawing board then ;-)


More information about the SciPy-User mailing list