Cython memory pool for RAII-style memory management
