db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/cache ObjectCacheDefaultImpl.java
Date Sat, 18 Sep 2004 17:28:58 GMT
arminw      2004/09/18 10:28:58

  Modified:    src/java/org/apache/ojb/broker/cache
                        ObjectCacheDefaultImpl.java
  Log:
  small performance tweak
  
  Revision  Changes    Path
  1.28      +6 -3      db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java
  
  Index: ObjectCacheDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- ObjectCacheDefaultImpl.java	14 Sep 2004 16:16:36 -0000	1.27
  +++ ObjectCacheDefaultImpl.java	18 Sep 2004 17:28:58 -0000	1.28
  @@ -133,9 +133,11 @@
           processQueue();
           if ((obj != null))
           {
  +            Integer key = buildKey(oid);
  +            CacheEntry entry = buildEntry(obj, oid);
               synchronized (dummy)
               {
  -                objectTable.put(buildKey(oid), buildEntry(obj, oid));
  +                objectTable.put(key, entry);
               }
           }
       }
  @@ -174,9 +176,10 @@
           processQueue();
           if (oid != null)
           {
  +            Integer key = buildKey(oid);
               synchronized (dummy)
               {
  -                objectTable.remove(buildKey(oid));
  +                objectTable.remove(key);
               }
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message