Skip to content

Commit

Permalink
reduce initial hashset size
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Jul 23, 2024
1 parent fa01121 commit d2637a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void createItemChannelLink(String context, String itemName, String chann
} else {
notifyListenersAboutUpdatedElement(oldLink, itemChannelLink);
}
addedItemChannels.computeIfAbsent(itemName, k -> new HashSet<>()).add(channelUIDObject);
addedItemChannels.computeIfAbsent(itemName, k -> new HashSet<>(2)).add(channelUIDObject);
}

@Override
Expand Down

0 comments on commit d2637a1

Please sign in to comment.