From: Stefan Behnel Date: Sun, 21 Dec 2008 10:05:50 +0000 (+0100) Subject: and another tiny speed-up X-Git-Tag: 0.11-beta~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7830d4fda674dafff8b45031efa0512b7fee9834;p=cython.git and another tiny speed-up --- diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 4dae2f70..b4ef5fd2 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -1,6 +1,7 @@ # # Tree visitor and transform framework # +import cython import inspect import Nodes import ExprNodes @@ -147,6 +148,7 @@ class VisitorTransform(TreeVisitor): self._super_visitchildren = super(VisitorTransform, self).visitchildren def visitchildren(self, parent, attrs=None): + result = cython.declare(dict) result = self._super_visitchildren(parent, attrs) for attr, newnode in result.iteritems(): if not isinstance(newnode, list):