Experiment to assist large seed-loads

* TextSeedModule.java
     in large seed loads, try to force finalization, just in case it's lagging
This commit is contained in:
gojomo
2010-11-05 23:27:43 +00:00
parent 0627a67dce
commit c56eb5d343
@@ -100,11 +100,16 @@ implements ReadSource {
RegexLineIterator.NONWHITESPACE_ENTRY_TRAILING_COMMENT,
RegexLineIterator.ENTRY);
int count = 0;
while (iter.hasNext()) {
s = (String) iter.next();
if(Character.isLetterOrDigit(s.charAt(0))) {
// consider a likely URI
seedLine(s);
count++;
if(count%20000==0) {
System.runFinalization();
}
} else {
// report just in case it's a useful directive
nonseedLine(s);