I started some work on refactoring temp allocation but didn't finish it and I am going away for the weekend. Please see http://trac.cython.org/cython_trac/ticket/77 for the current state before doing anything related. -- Dag Sverre