Commit 9f6fc06c authored by Stefan Behnel's avatar Stefan Behnel

declare some classes in FlowControl.py final to speed up internal method calls

parent daf7dcec
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment