You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/01/27 02:03:41 UTC

[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1172: [Improve] Use the correct init size for StringTemplate

CalvinKirs commented on a change in pull request #1172:
URL: https://github.com/apache/incubator-seatunnel/pull/1172#discussion_r793196720



##########
File path: seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java
##########
@@ -37,7 +37,7 @@ public static String substitute(String str, String timeFormat) {
         final SimpleDateFormat sdf = new SimpleDateFormat(timeFormat);
         final String formattedDate = sdf.format(new Date());
 
-        final Map<String, String> valuesMap = new HashMap(5);
+        final Map<String, String> valuesMap = new HashMap(3);

Review comment:
       Yes, there will be resize




-- 
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: commits-unsubscribe@seatunnel.apache.org

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