--On 19 décembre 2012 07:51:34 -0700 Timothy Baldridge
<
tbald...@gmail.com> wrote:
> So simply translating clojure code to native code using Python C APIs,
> should result in almost a 2x performance boost. Optimizing how native
I suppose you could get less of a boost for code that does more work inside
Python objects' methods. At least that's my experience with compiling plain
Python code using Cython. Your example uses very simple Python methods
(integer arithmetic), so the interpretation overhead in your function is
relatively more important.
Konrad.