← Back to team overview

instant team mailing list archive

[Fwd: [Branch ~instant-core/instant/main] Rev 288: Fix suspected leak in Instant.]

 

Instant gurus: Take a look at this change. I hope that it's not evil.

Instant was inserting an object into the memory cache even though it was
 already found in the cache. It was inserting the object based on its
address, and not its signature. This meant that a element or form
declared in a loop would be repeatedly inserted into the memory cache,
despite the signature being the same.

Garth



-------- Original Message --------
Subject: [Branch ~instant-core/instant/main] Rev 288: Fix suspected
leak in	Instant.
Date: Sun, 07 Feb 2010 12:01:13 -0000
From: noreply@xxxxxxxxxxxxx
Reply-To: noreply@xxxxxxxxxxxxx
To: Garth Wells <gnw20@xxxxxxxxx>

------------------------------------------------------------
revno: 288
committer: Garth N. Wells <gnw20@xxxxxxxxx>
branch nick: instant
timestamp: Sun 2010-02-07 11:51:12 +0000
message:
  Fix suspected leak in Instant.
modified:
  src/instant/cache.py


--
lp:instant
https://code.launchpad.net/~instant-core/instant/main

Your team Instant Core Team is subscribed to branch lp:instant.
To unsubscribe from this branch go to
https://code.launchpad.net/~instant-core/instant/main/+edit-subscription.



=== modified file 'src/instant/cache.py'
--- src/instant/cache.py	2009-03-20 14:10:01 +0000
+++ src/instant/cache.py	2010-02-07 11:51:12 +0000
@@ -83,8 +83,8 @@
                       "'%s' from moduleid.signature()." % moduleid)
         module = memory_cached_module(moduleid)
         if module:
-            for moduleid in moduleids:
-                place_module_in_memory_cache(moduleid, module)
+            #for moduleid in moduleids:
+            #    place_module_in_memory_cache(moduleid, module)
             return module, moduleids
         moduleids.append(moduleid)
     



Follow ups