Skip to content

Commit

Permalink
Begin fetching reads before loading index
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Aug 15, 2023
1 parent 8f683b2 commit 9e4b583
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bt2_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4695,6 +4695,10 @@ static void multiseedSearch(
EList<int> tids;
EList<std::thread*> threads(nthreads);
EList<thread_tracking_pair> tps;
// Important: Need at least nthreads+1 elements, more is OK
PatternSourceReadAheadFactory readahead_factory(patsrc,pp,4*nthreads+1);
multiseed_readahead_factory = &readahead_factory;

tps.resize(std::max(nthreads, thread_ceiling));
threads.reserveExact(std::max(nthreads, thread_ceiling));
tids.reserveExact(std::max(nthreads, thread_ceiling));
Expand Down Expand Up @@ -4727,9 +4731,6 @@ static void multiseedSearch(
startVerbose);
}

// Important: Need at least nthreads+1 elements, more is OK
PatternSourceReadAheadFactory readahead_factory(patsrc,pp,2*nthreads+1);
multiseed_readahead_factory = &readahead_factory;

// Start the metrics thread

Expand Down

0 comments on commit 9e4b583

Please sign in to comment.