[Cython] Multiple modules in one compilation unit

Robert Bradshaw robertwb at math.washington.edu
Thu Mar 3 20:14:19 CET 2011

On Thu, Mar 3, 2011 at 1:59 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Vitja Makarov, 03.03.2011 10:48:
>> To share common sources is a good idea, we can also share "code" in
>> libcython-<version>.so
>> But then we should handle ABI compatibility problems.
> There is little constant code overlap between modules, and putting that into
> a separate library would lead to performance regressions (no more inlining
> etc.).

There are types that would be nice to share, such as the binding C
function and generator types.

Both common headers and shared object libraries could be produced,
shared, managed by the cythonize(...) build command.

- Robert

More information about the cython-devel mailing list