From 3d45b68f057c80c2d00544d182440f838f805fd4 Mon Sep 17 00:00:00 2001 From: Mohit Godwani Date: Thu, 1 Jun 2023 15:27:57 +0530 Subject: [PATCH 1/2] Reduce allocations for field path text during parsing Signed-off-by: Mohit Godwani --- .../src/main/java/org/opensearch/index/mapper/ContentPath.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/main/java/org/opensearch/index/mapper/ContentPath.java b/server/src/main/java/org/opensearch/index/mapper/ContentPath.java index 468551aeed287..8b0d5e24056d3 100644 --- a/server/src/main/java/org/opensearch/index/mapper/ContentPath.java +++ b/server/src/main/java/org/opensearch/index/mapper/ContentPath.java @@ -84,6 +84,9 @@ public void remove() { } public String pathAsText(String name) { + if (offset == index) { + return name; + } sb.setLength(0); for (int i = offset; i < index; i++) { sb.append(path[i]).append(DELIMITER); From 48dec3965679af9b95db4b1b41b9d3e5fe4ff35c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Jul 2023 04:18:59 +0000 Subject: [PATCH 2/2] Bump com.google.http-client:google-http-client-appengine Bumps [com.google.http-client:google-http-client-appengine](https://github.com/googleapis/google-http-java-client) from 1.43.2 to 1.43.3. - [Release notes](https://github.com/googleapis/google-http-java-client/releases) - [Changelog](https://github.com/googleapis/google-http-java-client/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/google-http-java-client/compare/v1.43.2...v1.43.3) --- updated-dependencies: - dependency-name: com.google.http-client:google-http-client-appengine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- plugins/repository-gcs/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/repository-gcs/build.gradle b/plugins/repository-gcs/build.gradle index 41c36dffea296..77c1f7eec8e35 100644 --- a/plugins/repository-gcs/build.gradle +++ b/plugins/repository-gcs/build.gradle @@ -76,7 +76,7 @@ dependencies { api 'com.google.guava:failureaccess:1.0.1' api 'com.google.http-client:google-http-client:1.43.2' - api 'com.google.http-client:google-http-client-appengine:1.43.2' + api 'com.google.http-client:google-http-client-appengine:1.43.3' api 'com.google.http-client:google-http-client-gson:1.43.2' api 'com.google.http-client:google-http-client-jackson2:1.43.2'