performance problem in python 2.2
Fernando Perez
fperez528 at yahoo.com
Fri Jul 26 19:36:06 EDT 2002
Paul Rubin wrote:
> Fernando Perez <fperez528 at yahoo.com> writes:
>> The fact that one may spend a year's worth of cpu in computing an
>> expression for which an analytic solution exists is orthogonal to
>> the point I was making.
>
> It's a different point, yes, but related. Point 1, rather than bend
> backwards trying to optimize Python or Perl, write cpu-intensive
> code in a language that's closer to the machine. Point 2, rather
> than bending backwards writing efficient cpu-intensive code, look
> for a non-cpu-intensive way to solve your problem.
Amen.
I'd actually flip them in order of preference:
1. be smart.
2. when you can't, at least be efficient.
Cheers,
f.
More information about the Python-list
mailing list