Rev 147: Intern the addresses in references and we are down to 350MB. in http://bazaar.launchpad.net/~jameinel/meliae/mem-object-collection

John Arbash Meinel john at arbash-meinel.com
Tue Dec 29 03:30:41 GMT 2009


At http://bazaar.launchpad.net/~jameinel/meliae/mem-object-collection

------------------------------------------------------------
revno: 147
revision-id: john at arbash-meinel.com-20091229033021-5dnm2mdlvl3bcctm
parent: john at arbash-meinel.com-20091229032855-0cmiei00xq2bj3rj
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: mem-object-collection
timestamp: Mon 2009-12-28 21:30:21 -0600
message:
  Intern the addresses in references and we are down to 350MB.
-------------- next part --------------
=== modified file 'meliae/loader.py'
--- a/meliae/loader.py	2009-12-29 03:12:33 +0000
+++ b/meliae/loader.py	2009-12-29 03:30:21 +0000
@@ -63,6 +63,9 @@
               length=val.get('len', None),
               value=val.get('value', None),
               name=val.get('name', None))
+    if obj.value is not None and obj.name is not None:
+        print 'Type: %s has both name and value' % (obj.type_str,)
+        import pdb; pdb.set_trace()
     if (obj.type_str == 'str'):
         if type(obj.value) is unicode:
             obj.value = obj.value.encode('latin-1')



More information about the bazaar-commits mailing list