You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2009/05/27 00:09:45 UTC

[jira] Updated: (LUCENE-1662) consolidate FieldCache and ExtendedFieldCache instances

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

Yonik Seeley updated LUCENE-1662:
---------------------------------

    Attachment: LUCENE-1662.patch

Patch attached... all tests pass and I plan on committing shortly.

> consolidate FieldCache and ExtendedFieldCache instances
> -------------------------------------------------------
>
>                 Key: LUCENE-1662
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1662
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>             Fix For: 2.9
>
>         Attachments: LUCENE-1662.patch
>
>
> It's confusing and error prone having two instances of FieldCache... FieldCache .DEFAULT and ExtendedFieldCache .EXT_DEFAULT.
> Accidentally use the wrong one and you silently double the memory usage for that field.  Since ExtendedFieldCache extends FieldCache, there's no reason not to share the same instance across both.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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