Author: j16sdiz
Date: 2008-12-30 06:32:38 +0000 (Tue, 30 Dec 2008)
New Revision: 24841

Modified:
   trunk/plugins/XMLSpider/db/PerstRoot.java
Log:
memory optimization

Modified: trunk/plugins/XMLSpider/db/PerstRoot.java
===================================================================
--- trunk/plugins/XMLSpider/db/PerstRoot.java   2008-12-30 04:17:40 UTC (rev 
24840)
+++ trunk/plugins/XMLSpider/db/PerstRoot.java   2008-12-30 06:32:38 UTC (rev 
24841)
@@ -48,6 +48,7 @@
                Term term = wordTerm.get(new Key(word));
 
                if (create && term == null) {
+                       word = new String(word); // force a new instance, 
prevent referring to the old char[]                   
                        term = new Term(word, getStorage());
                        md5Term.put(term);
                        wordTerm.put(term);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to