You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/03/02 14:54:04 UTC

[jira] [Created] (LUCENE-6325) improve perf and memory of FieldInfos.fieldInfo(int)

Robert Muir created LUCENE-6325:
-----------------------------------

             Summary: improve perf and memory of FieldInfos.fieldInfo(int)
                 Key: LUCENE-6325
                 URL: https://issues.apache.org/jira/browse/LUCENE-6325
             Project: Lucene - Core
          Issue Type: Sub-task
            Reporter: Robert Muir


FieldInfos.fieldInfo(int) looks up a field by number and returns its FieldInfo.
This method is called per-field-per-doc in things like stored fields and vectors readers.

Unfortunately, today this method is always backed by a TreeMap. In most cases a simple array is better, its faster and uses less memory.

These changes made significant difference in stored fields checkindex time with my test index (had only 10 fields). Maybe it helps merge as well.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org