git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Optimize the rule processing function to parse only once, then manipulate the parsed...
[sfa.git]
/
sfatables
/
runtime.py
diff --git
a/sfatables/runtime.py
b/sfatables/runtime.py
index
235c67f
..
b155809
100644
(file)
--- a/
sfatables/runtime.py
+++ b/
sfatables/runtime.py
@@
-26,7
+26,8
@@
class SFATablesRules:
return
def apply(self, rspec):
- intermediate_rspec = rspec
+ doc = libxml2.parseDoc(rspec)
+ intermediate_rspec = doc
for rule in self.sorted_rule_list:
intermediate_rspec = rule.apply_interpreted(intermediate_rspec)
if (rule.terminal):