Message279235
And I feel current target size of dict_merge is bit larger.
When inserting new item:
* ma_used = dk_size*2 / 3 when right before increasing keys
* ma_used = dk_size / 3 when right after increasing keys
On the other hand, current dict_merge creates:
* ma_used = dk_size / 2 when all keys in two dict is distinct
* ma_used = dk_size / 4 when all keys in two dict is same
If changing it to dictresize(mp, (mp->ma_used + other->ma_used)*3/2),
* ma_used = dk_size*2 / 3 when all keys in two dict is distinct
* ma_used = dk_size / 3 when all keys in two dict is same
I think this is more consistent. |
|
Date |
User |
Action |
Args |
2016-10-23 02:41:31 | methane | set | recipients:
+ methane, rhettinger, benjamin.peterson, Mark.Shannon, serhiy.storchaka |
2016-10-23 02:41:31 | methane | link | issue28509 messages |
2016-10-23 02:41:30 | methane | create | |
|