in reply to Optimizing a large project.
SWIG wrappers are very inefficient!
The way it uses a tie interface to expose C struct attributes, and the double wrapping of objects it performs, makes it more than an order of magnitude slower than an equivalent hand-crafted XS interface (note that I am talking exclusively about the wrapping, obviously, the C functions behind, take the same time no matter if you use SWIG or XS!).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Optimizing a large project.
by dextius (Monk) on Jun 12, 2008 at 17:57 UTC | |
by TGI (Parson) on Jun 12, 2008 at 18:32 UTC |