You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/02/17 17:35:27 UTC

[jira] Commented: (FELIX-2092) Improve memory profile of model elements by using arrays and null objects vs HashSets to store parts of model

    [ https://issues.apache.org/jira/browse/FELIX-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834827#action_12834827 ] 

Richard S. Hall commented on FELIX-2092:
----------------------------------------

Are you talking about actual arrays or ArrayList? I was using arrays in the framework to be more efficient, but I've recently made the decision to move to ArrayLists instead since after looking into their implementation details more closely, it seems they are pretty efficient.

> Improve memory profile of model elements by using arrays and null objects vs HashSets to store parts of model
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2092
>                 URL: https://issues.apache.org/jira/browse/FELIX-2092
>             Project: Felix
>          Issue Type: Improvement
>          Components: Sigil
>            Reporter: David Savage
>            Priority: Minor
>
> In large repositories the amount of meta data that is held in memory can cause OutOfMemoryErrors if an attempt is made to cache data
> Candidate patches for improving the profile include, BundleModelElement (imports, exports, requires) and AbstractModelElement.meta which are the main offenders according to YourKit analysis

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