[pypy-svn] r13270 - pypy/dist/pypy/objspace/flow

tismer at codespeak.net tismer at codespeak.net
Fri Jun 10 16:31:16 CEST 2005


Author: tismer
Date: Fri Jun 10 16:31:15 2005
New Revision: 13270

Modified:
   pypy/dist/pypy/objspace/flow/model.py
Log:
folding the opcode strings by interning (they are few)

Modified: pypy/dist/pypy/objspace/flow/model.py
==============================================================================
--- pypy/dist/pypy/objspace/flow/model.py	(original)
+++ pypy/dist/pypy/objspace/flow/model.py	Fri Jun 10 16:31:15 2005
@@ -273,7 +273,7 @@
     __slots__ = "opname args result offset".split()
 
     def __init__(self, opname, args, result, offset=-1):
-        self.opname = opname      # operation name
+        self.opname = intern(opname)      # operation name
         self.args   = list(args)  # mixed list of var/const
         self.result = result      # either Variable or Constant instance
         self.offset = offset      # offset in code string



More information about the Pypy-commit mailing list