* mu-msg-iter.cc: get /all/ matches on the first go, thread those, then return

maxnum

  in situations where the number of matches is significantly greater than
  maxnum, results are much better this way.
This commit is contained in:
djcb 2012-12-25 18:49:14 +02:00
parent ba6955be21
commit f525c54356
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ public:
// set _skip_dups to false, so we'll calculate threadinfo
// for all, and then skip some after sorting
_skip_dups = false;
_matches = _enq.get_mset (0, maxnum);
// first, we get _all_ matches (G_MAXINT), based the threads
// on that, then return <maxint> of those
_matches = _enq.get_mset (0, G_MAXINT);
_matches.fetch();
_skip_dups = false;