lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adriano Crestani (JIRA)" <>
Subject [jira] Commented: (LUCENE-2556) CharTermAttribute cloning memory consumption
Date Fri, 23 Jul 2010 07:16:50 GMT


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.

Adriano Crestani

> CharTermAttribute cloning memory consumption
> --------------------------------------------
>                 Key: LUCENE-2556
>                 URL:
>             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:, LUCENE-2556.patch,
> The memory consumption problem with cloning a CharTermAttributeImpl object was raised
on thread

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:
For additional commands, e-mail:

View raw message