17935: trunk/xapian-core/ trunk/xapian-core/matcher/ trunk/xapian-core/weight/
olly <[email protected]>
| Newsgroups | gmane.comp.search.xapian.cvs |
|---|---|
| Message-ID | <[email protected]> |
SVN root: svn://svn.xapian.org/xapian Changes by: olly Revision: 17935 Date: 2014-04-01 23:43:52 +0100 (Tue, 01 Apr 2014) Log message (6 lines): matcher/localsubmatch.cc,weight/weight.cc,weight/weightinternal.cc, weight/weightinternal.h: Replace Weight::Internal methods to get termfreq, reltermfreq and colltermfreq with a single inlined get_stats() method, which only needs to search the map once. Shaves ~1.6% off the time to do a wildcard query with a lot of terms. Modified files: U trunk/xapian-core/ChangeLog U trunk/xapian-core/matcher/localsubmatch.cc U trunk/xapian-core/weight/weight.cc U trunk/xapian-core/weight/weightinternal.cc U trunk/xapian-core/weight/weightinternal.h Links: http://xapian.org/C?17935 http://xapian.org/C?17935?trunk/xapian-core/ChangeLog http://xapian.org/C?17935?trunk/xapian-core/matcher/localsubmatch.cc http://xapian.org/C?17935?trunk/xapian-core/weight/weight.cc http://xapian.org/C?17935?trunk/xapian-core/weight/weightinternal.cc http://xapian.org/C?17935?trunk/xapian-core/weight/weightinternal.h