[Xapian-commits] 11492: branches/1.0/xapian-core/ branches/1.0/xapian-core/api/ branches/1.0/xapian-core/tests/

olly xapian-commits at lists.xapian.org
Tue Oct 7 07:50:28 BST 2008


SVN root:       svn://svn.xapian.org/xapian
Changes by:     olly
Revision:       11492
Date:           2008-10-07 07:50:28 +0100 (Tue, 07 Oct 2008)

Log message (16 lines):
Backport changes from trunk:
tests/Makefile.am,tests/api_spelling.cc,tests/api_wrdb.cc: Split the
spelling tests out into a separate file.
tests/api_spelling.cc: Add a regression test for the bug my recently
added and reverted spelling optimisation introduced.
api/omdatabase.cc: Fixed version of: Avoid the relatively expensive
edit distance computation for a candidate spelling correction when
we can reject the candidate as less good than one we've already seen
by looking at the character frequency histograms.  In a test on
real-world data, this gave an 15% speed-up in queryparsing time
with FLAG_SPELLING_CORRECTION set.  The cheap check rejects 90%
of the words it handles (without the cheap check, the edit distance
check rejects 92%).
api/omdatabase.cc: Fix warning with gcc 4.2 about possible signed
overflow, by using an unsigned type for the total.
api/omdatabase.cc: Add missing include, to compile on GCC 4.3.0.

Modified files:
U   branches/1.0/xapian-core/ChangeLog
U   branches/1.0/xapian-core/api/omdatabase.cc
_U  branches/1.0/xapian-core/tests/
U   branches/1.0/xapian-core/tests/Makefile.am
A   branches/1.0/xapian-core/tests/api_spelling.cc
U   branches/1.0/xapian-core/tests/api_wrdb.cc

Links:
http://xapian.org/C?11492
http://xapian.org/C?11492?branches/1.0/xapian-core/ChangeLog
http://xapian.org/C?11492?branches/1.0/xapian-core/api/omdatabase.cc
http://xapian.org/C?11492?branches/1.0/xapian-core/tests/Makefile.am
http://xapian.org/C?11492?branches/1.0/xapian-core/tests/api_spelling.cc?A
http://xapian.org/C?11492?branches/1.0/xapian-core/tests/api_wrdb.cc



More information about the Xapian-commits mailing list