mirror of https://github.com/apache/lucene.git
Since many fields are single valued, start the ArrayList with capacity 1 -- this should help with GC.
http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--tf3931539.html#a11159518 git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548080 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e21f3cfd6e
commit
6ed8e171ad
|
@ -51,7 +51,7 @@ public class SolrDocument
|
|||
*/
|
||||
protected Collection<Object> getEmptyCollection( String name )
|
||||
{
|
||||
return new ArrayList<Object>();
|
||||
return new ArrayList<Object>( 1 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue