From 9f6fc06c48b60518a702ce0a0cba129adbeaf5b1 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 4 Feb 2013 18:54:37 +0100 Subject: [PATCH] declare some classes in FlowControl.py final to speed up internal method calls --- Cython/Compiler/FlowControl.pxd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/FlowControl.pxd b/Cython/Compiler/FlowControl.pxd index 7cd1d17..ceb6955 100644 --- a/Cython/Compiler/FlowControl.pxd +++ b/Cython/Compiler/FlowControl.pxd @@ -44,6 +44,7 @@ cdef class AssignmentList: cdef class AssignmentCollector(TreeVisitor): cdef list assignments +@cython.final cdef class ControlFlow: cdef public set blocks cdef public set entries @@ -86,6 +87,7 @@ cdef class Unknown: @cython.locals(dirty=bint, block=ControlBlock, parent=ControlBlock) cdef check_definitions(ControlFlow flow, dict compiler_directives) +@cython.final cdef class ControlFlowAnalysis(CythonTransform): cdef object gv_ctx cdef set reductions -- 2.7.4