Efficient data flow between orthogonal C extensions?
Pierre Schnizer
P.Schnizer at nospam.gsi.de
Thu Jun 5 02:43:04 EDT 2003
mlh at furu.idi.ntnu.no (Magnus Lie Hetland) writes:
> I'm about to write a component-based data flow program, and I'm
> pondering the design, partly when it comes to efficiency. Basically,
> the system will instantiate a set of objects, set up in a directed
> network-like structure, and they will pass data among themselves in a
> stream-like fashion.
>
If you are using callbacks, you can wrap the callbacks with swig. While swig
will not generate helpers to call python functions from C, you can pass
pointers to C functions.
http://www.swig.org/Doc1.3/SWIG.html#n30
Pierre
--
Remove nospam for direct reply.
More information about the Python-list
mailing list