SWIG overhead
Roman Yakovenko
roman.yakovenko at gmail.com
Thu Feb 1 05:54:41 EST 2007
On 1 Feb 2007 02:21:35 -0800, Bart Ogryczak <B.Ogryczak at gmail.com> wrote:
> Hi,
> I´m looking for some benchmarks comparing SWIG generated modules with
> modules made directly with C/Python API. Just how much overhead does
> SWIG give? Doing profile of my code I see, that it spends quiet some
> time in functions like _swig_setattr_nondinamic, _swig_setattr,
> _swig_getattr.
Before you decide to go "low level" consider to use Boost.Python.
According to this( http://tinyurl.com/322d3p ) post it gives pretty
good performance.
P.S. The post does not contain numbers
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Python-list
mailing list