mirror of https://github.com/djcb/mu.git
* 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:
parent
ba6955be21
commit
f525c54356
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue