From 614456379344c950b3583184c0416231a22e29d8 Mon Sep 17 00:00:00 2001 From: Junchuan Wang Date: Mon, 9 Jan 2023 23:00:01 -0800 Subject: [PATCH 1/3] change the innitialize size of resolvedProperties to 0 in order to save memory pre-allocationed --- data/src/main/java/com/linkedin/data/schema/DataSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From 2d3d436566428036de0220bc8e66772961a5a893 Mon Sep 17 00:00:00 2001 From: Junchuan Wang Date: Mon, 9 Jan 2023 23:21:40 -0800 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 6 +++++- gradle.properties | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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/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 From 6903828d8ac5b1fb2a4aa73d7b55866a6c55a185 Mon Sep 17 00:00:00 2001 From: Junchuan Wang Date: Tue, 10 Jan 2023 10:28:21 -0800 Subject: [PATCH 3/3] resolve comment --- .../main/java/com/linkedin/data/schema/RecordDataSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();