You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "paul constantinides (JIRA)" <ji...@apache.org> on 2006/11/14 23:33:38 UTC

[jira] Updated: (LUCENE-711) BooleanWeight should size the weights Vector correctly

     [ http://issues.apache.org/jira/browse/LUCENE-711?page=all ]

paul constantinides updated LUCENE-711:
---------------------------------------

    Attachment: vector_sizing.patch

Patch to move weights initialization to constructor with the correct sizing.

> BooleanWeight should size the weights Vector correctly
> ------------------------------------------------------
>
>                 Key: LUCENE-711
>                 URL: http://issues.apache.org/jira/browse/LUCENE-711
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 1.9, 2.0.0, 2.1, 2.0.1
>            Reporter: paul constantinides
>            Priority: Trivial
>         Attachments: vector_sizing.patch
>
>
> The weights field on BooleanWeight uses a Vector that will always be sized exactly the same as the outer class' clauses Vector, therefore can be sized correctly in the constructor. This is a trivial memory saving enhancement.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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