mirror of https://github.com/apache/lucene.git
LUCENE-7115: Speed up FieldCache.CacheEntry toString by setting initial StringBuilder capacity
This commit is contained in:
parent
cb1738360e
commit
56292fd4ef
|
@ -29,6 +29,9 @@ Optimizations
|
|||
* LUCENE-7097: IntroSorter now recurses to 2 * log_2(count) quicksort
|
||||
stack depth before switching to heapsort (Adrien Grand, Mike McCandless)
|
||||
|
||||
* LUCENE-7115: Speed up FieldCache.CacheEntry toString by setting initial
|
||||
StringBuilder capacity (Gregory Chanan)
|
||||
|
||||
======================= Lucene 6.0.0 =======================
|
||||
|
||||
System Requirements
|
||||
|
|
|
@ -404,7 +404,7 @@ interface FieldCache {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder b = new StringBuilder();
|
||||
StringBuilder b = new StringBuilder(250);
|
||||
b.append("'").append(getReaderKey()).append("'=>");
|
||||
b.append("'").append(getFieldName()).append("',");
|
||||
b.append(getCacheType()).append(",").append(getCustom());
|
||||
|
|
Loading…
Reference in New Issue