diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-06-30 00:56:40 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-06-30 00:59:43 +0200 |
commit | 636f8a0b266e61bfb3daf780aebbbf93980c5d9f (patch) | |
tree | 6216c2d35ea1b6077a48f25eba5893ca653ab10d /container-search | |
parent | 90a9f7a3ccf1f29bd1e3ced4368e373dd1193fd8 (diff) |
Rewrite to use native arrays instead of List<String> => Cpu cost cut in half.
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/Query.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java index 48885e4b3da..3a2bccf017e 100644 --- a/container-search/src/main/java/com/yahoo/search/Query.java +++ b/container-search/src/main/java/com/yahoo/search/Query.java @@ -438,7 +438,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { for (FieldDescription field : arguments.fields().values()) { if (field.getType() == FieldType.genericQueryProfileType) { // Generic map - CompoundName fullName = prefix.append(field.getName()); + CompoundName fullName = prefix.append(field.getCompoundName()); for (Map.Entry<String, Object> entry : originalProperties.listProperties(fullName, context).entrySet()) { properties().set(fullName.append(entry.getKey()), entry.getValue(), context); } @@ -447,7 +447,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { setFrom(prefix, originalProperties, ((QueryProfileFieldType)field.getType()).getQueryProfileType(), context); } else { - CompoundName fullName = prefix.append(field.getName()); + CompoundName fullName = prefix.append(field.getCompoundName()); Object value = originalProperties.get(fullName, context); if (value != null) { properties().set(fullName, value, context); |