lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2556) CharTermAttribute cloning memory consumption
Date Tue, 19 Oct 2010 11:28:28 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922523#action_12922523
] 

Robert Muir commented on LUCENE-2556:
-------------------------------------

bq. The only thing: It still thin it should use an array size calculated by ArrayUtils.oversize()
on the clone?

I don't think we should. the clone might never be used again: 

So if the clone is never reused, there is no evidence the array will ever grow (most analysis
processes, stemming and folding, etc actually shorten the term text)

> 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, lucene_2556_adriano_crestani_07_24_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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message