Message279480
I feel that accept one resize while merging is better.
How about this?
/* Do one big resize at the start, rather than incrementally
* resizing. At most one resize happen while merging.
*/
if (USABLE_FRACTION(mp->ma_keys->dk_size) < other->ma_used) {
assert(mp->ma_used < other->ma_used);
if (dictresize(mp, ESTIMATE_SIZE(other->ma_used))) {
return -1;
}
} |
|
Date |
User |
Action |
Args |
2016-10-26 01:47:13 | methane | set | recipients:
+ methane, rhettinger, benjamin.peterson, Mark.Shannon, serhiy.storchaka, xiang.zhang |
2016-10-26 01:47:13 | methane | set | messageid: <1477446433.02.0.533180037015.issue28509@psf.upfronthosting.co.za> |
2016-10-26 01:47:13 | methane | link | issue28509 messages |
2016-10-26 01:47:12 | methane | create | |
|