Skip to content

Commit

Permalink
Merge pull request #3021 from jzdayz/develop
Browse files Browse the repository at this point in the history
a power of two size for hashmap
  • Loading branch information
KomachiSion authored Jun 10, 2020
2 parents f49eba3 + d21bbf4 commit 0a47bc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void registerService(String serviceName, String groupName, Instance insta
NAMING_LOGGER.info("[REGISTER-SERVICE] {} registering service {} with instance: {}",
namespaceId, serviceName, instance);

final Map<String, String> params = new HashMap<String, String>(9);
final Map<String, String> params = new HashMap<String, String>(16);
params.put(CommonParams.NAMESPACE_ID, namespaceId);
params.put(CommonParams.SERVICE_NAME, serviceName);
params.put(CommonParams.GROUP_NAME, groupName);
Expand Down

0 comments on commit 0a47bc7

Please sign in to comment.