diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-10-12 08:55:19 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-10-12 09:12:05 +0200 |
commit | 1cb581c8873591316fd20927931e24efc3e5837d (patch) | |
tree | 878d779e55224791e199a2ca4326d8983aca8fa9 /container-search/src/main/java/com/yahoo/prelude/query/Item.java | |
parent | 09489728d0912761649106f00d7837281b272a76 (diff) |
- Use a common scratchpad for serializing the different parts of the query.
- Use a threadlocal for the scratchpad. This avoids costly resizing, or initialiing too large buffer
for every query. Using a thread local is fine now that we limit the number of search threads to a
reasonable number = #cores * 2.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/query/Item.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/query/Item.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/Item.java b/container-search/src/main/java/com/yahoo/prelude/query/Item.java index 7f421832d5f..8c154072a42 100644 --- a/container-search/src/main/java/com/yahoo/prelude/query/Item.java +++ b/container-search/src/main/java/com/yahoo/prelude/query/Item.java @@ -1,7 +1,6 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.prelude.query; - import com.yahoo.collections.CopyOnWriteHashMap; import com.yahoo.compress.IntegerCompressor; import com.yahoo.language.Language; |