Post it here because PocketSword team potentially would be interested too.

Some time ago i got strange issue when indexing time in BibleTime Mini
increased from 9 minutes to several hours. Investigating this i found that
one line been removed from BibleTime code, it have following setup for
clucene writer:

        // Always create a new index:
        typedef lucene::index::IndexWriter IW;
        QSharedPointer<IW> writer(new IW(index.toLatin1().constData(), &an,
true));
        writer->setMaxFieldLength(BT_MAX_LUCENE_FIELD_LENGTH);
        writer->setUseCompoundFile(true); // Merge segments into a single
file

and following line was removed, when i restored it, index building time
returned to 9 minutes on all mobile targets:
        writer->setMinMergeDocs(1000);

Let me know if this removal was related with any bugfix.
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to