[ 
https://issues.apache.org/jira/browse/LUCENE-7566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Sokolov resolved LUCENE-7566.
-------------------------------------
    Resolution: Fixed

This seems to have been fixed at some point, just resolving the issue after the 
fact. I now see:

 

{{public Builder add(BooleanClause clause) {}}
{{  // We do the final deep check for max clauses count limit during}}
{{  //<code>IndexSearcher.rewrite</code> but do this check to short}}
{{  // circuit in case a single query holds more than numClauses}}
{{  if (clauses.size() >= IndexSearcher.maxClauseCount) {}}
{{    throw new IndexSearcher.TooManyClauses();}}
{{  }}}
{{  clauses.add(clause);}}
{{  return this;}}
{{ }}}

> BooleanQuery.Builder shouldn't clone added clauses
> --------------------------------------------------
>
>                 Key: LUCENE-7566
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7566
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>            Priority: Trivial
>
> Minor GC improvement: There's no reason to clone BooleanClause in 
> BooleanQuery.Builder.add()



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to