You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/26 14:59:33 UTC

[GitHub] [shardingsphere] terrymanu commented on pull request #11515: Revise #11513

terrymanu commented on pull request #11515:
URL: https://github.com/apache/shardingsphere/pull/11515#issuecomment-886778099


   > @terrymanu hi, I looked at the source code of `HashMap` and tested that the `threshold` value calculated by `new HashMap<>(3)` and `new HashMap<>(3, 1)` is the same, and it will not expand when storing three elements, so I I chose `new HashMap<>(3)` this concise way.
   
   The `DEFAULT_LOAD_FACTOR` is `0.75f`, set loadFactor to `1` to avoid re-calculate is better


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org