On Sat, May 17, 2008 at 7:39 PM, Nathan Bell <[EMAIL PROTECTED]> wrote:

> More disingenuous FUD here: http://www.sagemath.org/doc/html/prog/node36.html

For the purposes to which SWIG was applied in that case, the findings
are accurate. The wording is overly general, though; it doesn't talk
about other use cases for which the findings are not applicable. When
the amount of computation in C/C++ is fairly small (multiplying 2 GMP
integers), and the Python-level wrapper function needs to be called
many times, then the overhead of the various SWIG layers can become
significant. When the amount of computation in C/C++ is fairly large
(matmult on sparse matrices), the Python function call overhead will
probably be insignificant.

Making a blanket statement either way is incorrect.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to