Skip to content

Commit

Permalink
reduce page number.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 14, 2023
1 parent 94b8a0d commit 22ae3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/sparse_page_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class SparsePageSourceImpl : public BatchIteratorImpl<S> {
}
// An heuristic for number of pre-fetched batches. We can make it part of BatchParam
// to let user adjust number of pre-fetched batches when needed.
uint32_t constexpr kPreFetch = 4;
uint32_t constexpr kPreFetch = 3;

size_t n_prefetch_batches = std::min(kPreFetch, n_batches_);
CHECK_GT(n_prefetch_batches, 0) << "total batches:" << n_batches_;
Expand Down

0 comments on commit 22ae3f6

Please sign in to comment.