From 472de63dd01cb24a576d76b46322e25d9b1aa5b7 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Sun, 10 Jan 2021 12:40:27 +0100 Subject: Update abi spec --- container-search/abi-spec.json | 13 +++++++++++++ .../yahoo/search/query/profile/CompoundNameChildCache.java | 2 ++ 2 files changed, 15 insertions(+) diff --git a/container-search/abi-spec.json b/container-search/abi-spec.json index 1980566b490..b639cdf548f 100644 --- a/container-search/abi-spec.json +++ b/container-search/abi-spec.json @@ -5619,6 +5619,19 @@ ], "fields": [] }, + "com.yahoo.search.query.profile.CompoundNameChildCache": { + "superClass": "java.lang.Object", + "interfaces": [], + "attributes": [ + "public", + "final" + ], + "methods": [ + "public void ()", + "public com.yahoo.processing.request.CompoundName append(com.yahoo.processing.request.CompoundName, java.lang.String)" + ], + "fields": [] + }, "com.yahoo.search.query.profile.CopyOnWriteContent": { "superClass": "com.yahoo.component.provider.FreezableClass", "interfaces": [ diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java b/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java index bc23db3871e..4163e45ae61 100644 --- a/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java +++ b/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java @@ -8,6 +8,8 @@ import java.util.Map; /** * Cache for compound names created through {@link CompoundName#append(String)}. + * Creating new {@link CompoundName}s can be expensive, and since they are immutable, they + * are safe to cache and reuse. Use this if you will create a lot of them, by appending suffixes. * * @author jonmv */ -- cgit v1.2.3