[SciPy-User] Should one NOT start with Cython first?
Chris Barker
chris.barker at noaa.gov
Fri Mar 13 14:27:12 EDT 2015
On Tue, Mar 10, 2015 at 9:30 AM, Sturla Molden <sturla.molden at gmail.com>
wrote:
> We prefer "slow and correct" code to "fast but
> incorrect" code. As a consequence of this, you will often be better off
> spending your time writing rigorous test cases than optimizing for speed.
>
And you'll really want those tests if/when you do optimize for speed.
Rather it is the time you spend working on the
> project, from its planning until your paper is published.
Exactly -- or even if you aren't an academic, development time is far more
valuable than run time.
They key here is that Cython is really great, and can be very easy to use
-- but it is not at all cost free. The edit-compile-test cycle is much
slower, and it's a lot harder to debug than Python -- so you really don't
want to use it unless there is a real gain to to doing so.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20150313/6dcec38d/attachment.html>
More information about the SciPy-User
mailing list