beagle r3515 - trunk/beagle/beagled
- From: joeshaw svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r3515 - trunk/beagle/beagled
- Date: Tue, 27 Feb 2007 21:06:22 +0000 (GMT)
Author: joeshaw
Date: 2007-02-27 21:06:22 +0000 (Tue, 27 Feb 2007)
New Revision: 3515
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3515&view=rev
Modified:
trunk/beagle/beagled/LuceneQueryingDriver.cs
Log:
Some performance improvements:
* When debug is on, get a lot more granular about how long something
takes. Obviously helpful in identifying the hotspots.
* Replace our URI searches in the secondary index with a term
enumerator. This is a lot faster and more memory friendly than doing
queries and multiple passes.
* Use a single TermDocs instance in ScoreHits(); before we were
instantiating a new one inside the loop and not closing it. This reuses
a single one and seeks within it, closing it when we're all done.
Should use a little less memory in multiterm searches.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]