Is it Python or is it C ?

Emile van Sebille emile at fenx.com
Wed Mar 8 16:11:52 CET 2000


Don,

Once it exists in the interpreter as bytecode, isn't it
*all* running as compiled C?  In which case, doesn't
that transform the question to 'which preferred pydioms
yield the best performing bytecode?'? <*1>

There's been a number of speed related code optimization
threads that I've seen.  IIRC, most came to the conclusion
that coding done in the easiest most natural way performed
best when scaled against readability (i.e., significant further
speed gains came only at the expense of perl-style coding ;-).

Anyway, I'd also love to see a compilation of optimized coding
preferences along the lines of 'use x over y because z'.

Although-it's-fast-enough-for-my-needs-ly y'rs,

Emile van Sebille
emile at fenx.com
-------------------
*1 <Would you English majors out there tell me if I really
need two '?'s at the end there?>


----- Original Message -----
From: Don Tuttle <tuttledon at hotmail.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Wednesday, March 08, 2000 5:49 AM
Subject: Re: Is it Python or is it C ?


> "Rod Haper" <
> > Have you tried posing the question direction to Grayson via the
Manning
> > website
>
> No.  Although I may have made my question a little to open ended, I'm
> looking for a peer review on the concept --"With a little care in the
way
> you design your code, most of your code will run as compiled C..."
>
> If there is a way to optimize Python, short of memorizing it's source
code
> and/or years of trial and error, someone should have their next book
> project! (I'll buy it!)  And I say this as someone who doesn't have
enough
> Python experience to know if this is a true statement or not.
>
> So, is there a way to design Python code, short of memorizing it's
source
> code and/or years of trial and error, that will make most of the code
will
> run as compiled C? And if so, where do I find it and how much is it
gonna
> cost me<wink>?
>
> Don
>
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
>






More information about the Python-list mailing list