Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20810

Modified Files:
        objectcache.py 
Log Message:
fix bad bug in the object cache, much faster again

Index: objectcache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/objectcache.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** objectcache.py      21 Jun 2004 12:06:38 -0000      1.7
--- objectcache.py      23 Jun 2004 20:05:16 -0000      1.8
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.8  2004/06/23 20:05:16  dischi
+ # fix bad bug in the object cache, much faster again
+ #
  # Revision 1.7  2004/06/21 12:06:38  dischi
  # fix strange crash with try except
***************
*** 106,110 ****
              del self.lru[self.lru.index(key)]
          except:
!             return None
              
          # Do we need to delete the oldest item?
--- 109,113 ----
              del self.lru[self.lru.index(key)]
          except:
!             pass
              
          # Do we need to delete the oldest item?
***************
*** 117,121 ****
          self.cache[key] = object
          self.lru.append(key)
! 
  
      def __delitem__(self, key):
--- 120,124 ----
          self.cache[key] = object
          self.lru.append(key)
!         
  
      def __delitem__(self, key):



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to