Choosing Perl/Python for my particular niche

Aahz aahz at pythoncraft.com
Mon Mar 29 11:57:02 EST 2004


In article <40661C14.8365E058 at doe.carleton.ca>,
Fred Ma  <fma at doe.carleton.ca> wrote:
>
>On the topic of speed, It's surprising to hear that this can be
>possibly rivaled by Perl/Python, considering that even my matlab code
>is about 10x slower than C++.  That's with extensive profiling and
>round-about coding styles to exploit vectorization tricks, and no such
>effort in the C++ code.

The reason people say this is because algorithmic experimentation is
cheap in Python/Perl.  An O(NlogN) algorithm in Python/Perl will lose to
an O(N^2) algorithm in C/C++ with a few elements, but as the data set
grows, the O(NlogN) algorithm will pull ahead.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"usenet imitates usenet"  --Darkhawk



More information about the Python-list mailing list