[pypy-svn] r17825 - pypy/dist/pypy/translator
arigo at codespeak.net
arigo at codespeak.net
Sat Sep 24 15:01:18 CEST 2005
Author: arigo
Date: Sat Sep 24 15:01:17 2005
New Revision: 17825
Modified:
pypy/dist/pypy/translator/transform.py
Log:
Ooooups. A typo in here, and rtyping was 2-3x slower. Additionally, let's
revert to the previous version instead of using dict.fromkeys() on a huge list.
Modified: pypy/dist/pypy/translator/transform.py
==============================================================================
--- pypy/dist/pypy/translator/transform.py (original)
+++ pypy/dist/pypy/translator/transform.py Sat Sep 24 15:01:17 2005
@@ -17,10 +17,13 @@
def checkgraphs(self, blocks):
- all_graphs = [self.translator.flowgraphs[fn]
- for fn in self.annotated.itervalues()]
- for graph in dict.fromkeys(all_graphs):
- checkgraph(graph)
+ seen = {}
+ for block in blocks:
+ fn = self.annotated[block]
+ graph = self.translator.flowgraphs[fn]
+ if graph not in seen:
+ checkgraph(graph)
+ seen[graph] = True
def fully_annotated_blocks(self):
"""Ignore blocked blocks."""
More information about the Pypy-commit
mailing list