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 43c554854e6f6dd8a0573aa6a9a200fcebc993ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 01:03:36 +0000 Subject: [PATCH 2/2] Bump com.google.jimfs:jimfs from 1.2 to 1.3.0 in /qa/evil-tests Bumps [com.google.jimfs:jimfs](https://github.com/google/jimfs) from 1.2 to 1.3.0. - [Release notes](https://github.com/google/jimfs/releases) - [Commits](https://github.com/google/jimfs/compare/v1.2...v1.3.0) --- updated-dependencies: - dependency-name: com.google.jimfs:jimfs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- qa/evil-tests/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/evil-tests/build.gradle b/qa/evil-tests/build.gradle index 3d97aab077251..bc694d66ab442 100644 --- a/qa/evil-tests/build.gradle +++ b/qa/evil-tests/build.gradle @@ -40,7 +40,7 @@ apply plugin: 'opensearch.testclusters' apply plugin: 'opensearch.standalone-test' dependencies { - testImplementation 'com.google.jimfs:jimfs:1.2' + testImplementation 'com.google.jimfs:jimfs:1.3.0' } // TODO: give each evil test its own fresh JVM for more isolation.