diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f8a7180ca..0ea83b739b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and what APIs have changed, if applicable. ## [Unreleased] +## [29.41.4] - 2023-01-09 +change the innitialize size of resolvedProperties to 0 in order to save memory pre-allocated + ## [29.41.3] - 2023-01-03 Add option to force publish idl and snapshot @@ -5429,7 +5432,8 @@ patch operations can re-use these classes for generating patch messages. ## [0.14.1] -[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.41.3...master +[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.41.4...master +[29.41.4]: https://github.com/linkedin/rest.li/compare/v29.41.3...v29.41.4 [29.41.3]: https://github.com/linkedin/rest.li/compare/v29.41.2...v29.41.3 [29.41.2]: https://github.com/linkedin/rest.li/compare/v29.41.1...v29.41.2 [29.41.1]: https://github.com/linkedin/rest.li/compare/v29.41.0...v29.41.1 diff --git a/data/src/main/java/com/linkedin/data/schema/DataSchema.java b/data/src/main/java/com/linkedin/data/schema/DataSchema.java index 173eaba714..4593f026d4 100644 --- a/data/src/main/java/com/linkedin/data/schema/DataSchema.java +++ b/data/src/main/java/com/linkedin/data/schema/DataSchema.java @@ -184,5 +184,5 @@ public DataSchema clone() throws CloneNotSupportedException } private final Type _type; - Map _resolvedProperties = new HashMap<>(); + Map _resolvedProperties = new HashMap<>(0); } diff --git a/data/src/main/java/com/linkedin/data/schema/RecordDataSchema.java b/data/src/main/java/com/linkedin/data/schema/RecordDataSchema.java index e6bf65e8d7..c676849a3e 100644 --- a/data/src/main/java/com/linkedin/data/schema/RecordDataSchema.java +++ b/data/src/main/java/com/linkedin/data/schema/RecordDataSchema.java @@ -415,7 +415,7 @@ static public boolean isValidFieldName(String input) private RecordDataSchema _record = null; private List _aliases = _emptyAliases; private Map _properties = _emptyProperties; - private Map _resolvedProperties = new HashMap<>(); + private Map _resolvedProperties = new HashMap<>(0); private boolean _declaredInline = false; static private final Map _emptyProperties = Collections.emptyMap(); diff --git a/gradle.properties b/gradle.properties index 65d3cb4542..78aed4a4ad 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=29.41.3 +version=29.41.4 group=com.linkedin.pegasus org.gradle.configureondemand=true org.gradle.parallel=true