Revision: 18183
          http://sourceforge.net/p/gate/code/18183
Author:   ian_roberts
Date:     2014-07-15 15:38:32 +0000 (Tue, 15 Jul 2014)
Log Message:
-----------
Minor optimization - use writeUnshared so the ObjectOutputStream doesn't need 
to hang on to a reference to the GATE Document in case of possible 
backreferences (which we know won't happen).

Modified Paths:
--------------
    mimir/trunk/mimir-client/src/gate/mimir/index/MimirConnector.java

Modified: mimir/trunk/mimir-client/src/gate/mimir/index/MimirConnector.java
===================================================================
--- mimir/trunk/mimir-client/src/gate/mimir/index/MimirConnector.java   
2014-07-15 01:19:40 UTC (rev 18182)
+++ mimir/trunk/mimir-client/src/gate/mimir/index/MimirConnector.java   
2014-07-15 15:38:32 UTC (rev 18183)
@@ -144,7 +144,7 @@
     
     synchronized(this) {
       if(doc != null){
-        objectOutputStream.writeObject(doc);
+        objectOutputStream.writeUnshared(doc);
       }
       if(byteBuffer.size() > BYTE_BUFFER_SIZE) {
         writeBuffer(); // this will also empty (reset) the buffer

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to