[
https://issues.apache.org/jira/browse/LUCENE-2556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891500#action_12891500
]
Adriano Crestani commented on LUCENE-2556:
------------------------------------------
I was checking State.clone() method usage and it's just used store the current
AttributeSource state for later use, when it's restored by invoking
AttributeSource.restoreState(), which only copies the valid chars from the
stored state to the current CharTermAttribute object the AttributeSource holds.
In the end, I see no reason for stored states (the cloned ones) to hold an
internal buffer greater than it needs too, once it will never be actually
used/changed by any AttributeSource user.
Please, let me know if I'm missing something.
Thanks,
Adriano Crestani
> CharTermAttribute cloning memory consumption
> --------------------------------------------
>
> Key: LUCENE-2556
> URL: https://issues.apache.org/jira/browse/LUCENE-2556
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Analysis
> Affects Versions: 3.0.2
> Reporter: Adriano Crestani
> Assignee: Uwe Schindler
> Priority: Minor
> Fix For: 3.1
>
> Attachments: CharTermAttributeMemoryConsumptionDemo.java,
> LUCENE-2556.patch, lucene_2556_adriano_crestani_07_23_2010.patch
>
>
> The memory consumption problem with cloning a CharTermAttributeImpl object
> was raised on thread http://markmail.org/thread/bybuerugbk5w2u6z
--
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: [email protected]
For additional commands, e-mail: [email protected]