[Xapian-tickets] [Xapian] #344: Allow calculation of percentages to be disabled

Xapian nobody at xapian.org
Tue Dec 2 03:43:47 GMT 2014


#344: Allow calculation of percentages to be disabled
-------------------------+------------------------------
 Reporter:  richard      |             Owner:  olly
     Type:  defect       |            Status:  closed
 Priority:  low          |         Milestone:  1.1.2
Component:  Library API  |           Version:  SVN trunk
 Severity:  normal       |        Resolution:  fixed
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+------------------------------
Changes (by olly):

 * status:  assigned => closed
 * resolution:   => fixed
 * milestone:  1.3.3 => 1.1.2


Comment:

 The way we calculate percentages has changed a lot since this ticket was
 filed - now each time the highest ranked document changes, we count how
 many leaf subqueries match, and then at the end we divide this by the
 total number of leaf subqueries to get a percentage scale factor.

 I've just done a quick profile of current git master with callgrind, and I
 get that these recursive calls amount to 0.016% of the execution time,
 which I think is completely acceptable, so I'm going to close this ticket.

 This new approach was implemented back in 1.1.2 (though the query
 internals were completely rewritten in 1.3.0, which may have changed the
 exact fraction of time this takes) so marking as fixed by that version.

--
Ticket URL: <http://trac.xapian.org/ticket/344#comment:8>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list