提交 7770c6ad authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Set initial capacity of Function.FUNCTIONS and DateTimeFunctions.DATE_PART

上级 3eaaa456
......@@ -146,7 +146,7 @@ public class Function extends Expression implements FunctionCall {
private static final int VAR_ARGS = -1;
private static final long PRECISION_UNKNOWN = -1;
private static final HashMap<String, FunctionInfo> FUNCTIONS = new HashMap<>();
private static final HashMap<String, FunctionInfo> FUNCTIONS = new HashMap<>(256);
private static final char[] SOUNDEX_INDEX = new char[128];
protected Expression[] args;
......
......@@ -49,7 +49,7 @@ import org.h2.value.ValueTimestampTimeZone;
* Date and time functions.
*/
public final class DateTimeFunctions {
private static final HashMap<String, Integer> DATE_PART = new HashMap<>();
private static final HashMap<String, Integer> DATE_PART = new HashMap<>(128);
/**
* English names of months and week days.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论