Ticket #469 (assigned task)
Dependency graph for output of types and utility code
|Reported by:||dagss||Owned by:||dagss|
As the builtin/"utility code" types of Cython becomes more complex, the current way of building up the output is too naive. Current behaviour:
- Output stream is divided into coarse-grained blocks
- Within each block, the order of type declarations are relied upon
For complex numbers, memoryviews, etc., this is ugly or even insufficient. It would be better to store the full type DAG, and walk it to output declarations in the right order.
Utility code could make use of the same DAG, so that utility code could depend on types and vice versa.