Is there any way to speed up sorting for searches? Here is an output of
a search on a 4.1 GB index with -d:DProf. I need sorted searches to be
much faster. Any suggestions?
[root@localhost SearchProject]# dprofpp
Total Elapsed Time = 11.16279 Seconds
User+System Time = 7.532793 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c Name
72.2 5.440 5.440 1 5.4400 5.4400
KinoSearch::Index::Lexicon::build_sort_cache
4.90 0.369 0.369 155 0.0024 0.0024
KinoSearch::Index::DocVector::_extract_tv_cache
4.30 0.324 0.914 155 0.0021 0.0059
KinoSearch::Highlight::Highlighter::_gen_excerpt
3.11 0.234 0.234 4673 0.0001 0.0001
KinoSearch::Store::InStream::lu_read
1.85 0.139 0.491 25 0.0056 0.0196 main::BEGIN
1.51 0.114 0.114 1041 0.0001 0.0001
KinoSearch::Index::DocVector::add_field_string
1.02 0.077 0.218 96 0.0008 0.0023 base::import
0.93 0.070 0.070 5 0.0140 0.0140 utf8::SWASHNEW
0.85 0.064 1.452 156 0.0004 0.0093
KinoSearch::Search::Hits::fetch_hit_hashref
0.80 0.060 0.060 1 0.0600 0.0600
KinoSearch::Index::LexReader::new
0.78 0.059 0.059 2001 0.0000 0.0000 KinoSearch::Util::Obj::DESTROY
0.77 0.058 0.196 155 0.0004 0.0013
KinoSearch::Index::DocReader::fetch_doc
0.76 0.057 0.460 155 0.0004 0.0030
KinoSearch::Index::DocVector::term_vector
0.69 0.052 0.143 349 0.0001 0.0004 KinoSearch::Util::Class::new
0.56 0.042 0.529 155 0.0003 0.0034
KinoSearch::Highlight::Highlighter::_starts_and_ends
a search on a 4.1 GB index with -d:DProf. I need sorted searches to be
much faster. Any suggestions?
[root@localhost SearchProject]# dprofpp
Total Elapsed Time = 11.16279 Seconds
User+System Time = 7.532793 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c Name
72.2 5.440 5.440 1 5.4400 5.4400
KinoSearch::Index::Lexicon::build_sort_cache
4.90 0.369 0.369 155 0.0024 0.0024
KinoSearch::Index::DocVector::_extract_tv_cache
4.30 0.324 0.914 155 0.0021 0.0059
KinoSearch::Highlight::Highlighter::_gen_excerpt
3.11 0.234 0.234 4673 0.0001 0.0001
KinoSearch::Store::InStream::lu_read
1.85 0.139 0.491 25 0.0056 0.0196 main::BEGIN
1.51 0.114 0.114 1041 0.0001 0.0001
KinoSearch::Index::DocVector::add_field_string
1.02 0.077 0.218 96 0.0008 0.0023 base::import
0.93 0.070 0.070 5 0.0140 0.0140 utf8::SWASHNEW
0.85 0.064 1.452 156 0.0004 0.0093
KinoSearch::Search::Hits::fetch_hit_hashref
0.80 0.060 0.060 1 0.0600 0.0600
KinoSearch::Index::LexReader::new
0.78 0.059 0.059 2001 0.0000 0.0000 KinoSearch::Util::Obj::DESTROY
0.77 0.058 0.196 155 0.0004 0.0013
KinoSearch::Index::DocReader::fetch_doc
0.76 0.057 0.460 155 0.0004 0.0030
KinoSearch::Index::DocVector::term_vector
0.69 0.052 0.143 349 0.0001 0.0004 KinoSearch::Util::Class::new
0.56 0.042 0.529 155 0.0003 0.0034
KinoSearch::Highlight::Highlighter::_starts_and_ends