lucene-dev mailing list archives

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

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

Uwe Schindler commented on LUCENE-2556:
---------------------------------------

There is also no problem with reusing the cloned attribute, as ArrayUtils grows the array
correctly also in that case. So you can still apend stuff as usual, with a *small* perf penalty
maybe.

I think I will commit this later this evening to trunk and 3.x. Merging is little harder because
of sophisticated backwards layer in 3.x. :-)

> 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