diff genshi/template/base.py @ 717:0e8b92905741 experimental-match-fastpaths

a performance breakthrough - bring this branch inline with the bigtable benchmark by lazily creating ctxt._match_set in a way that doesn't barf
author aflett
date Tue, 08 Apr 2008 23:36:20 +0000
parents 0cc3f1eabe13
children d143dd73789b
line wrap: on
line diff
--- a/genshi/template/base.py
+++ b/genshi/template/base.py
@@ -25,7 +25,6 @@
 
 from genshi.core import Attrs, Stream, StreamEventKind, START, TEXT, _ensure
 from genshi.input import ParseError
-from genshi.template.match import MatchSet
 
 __all__ = ['Context', 'Template', 'TemplateError', 'TemplateRuntimeError',
            'TemplateSyntaxError', 'BadDirectiveError']
@@ -137,7 +136,7 @@
         self.frames = deque([data])
         self.pop = self.frames.popleft
         self.push = self.frames.appendleft
-        self._match_set = MatchSet()
+        self._match_set = None
         self._choice_stack = []
 
         # Helper functions for use in expressions
Copyright (C) 2012-2017 Edgewall Software