[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-dev
Subject:    [jira] [Updated] (MYFACES-3435) [perf] _DeltaList: use ArrayList as
From:       Martin_Kočí_(Updated)_(JIRA) <dev () myfaces ! apache ! o
Date:       2011-12-30 19:32:30
Message-ID: 196178367.54378.1325273550941.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/MYFACES-3435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Martin Kočí updated MYFACES-3435:
---------------------------------

    Status: Patch Available  (was: Open)
    
> [perf] _DeltaList: use ArrayList as parent
> ------------------------------------------
> 
> Key: MYFACES-3435
> URL: https://issues.apache.org/jira/browse/MYFACES-3435
> Project: MyFaces Core
> Issue Type: Improvement
> Components: General
> Affects Versions: 2.0.12-SNAPSHOT, 2.1.6-SNAPSHOT
> Reporter: Martin Kočí
> Assignee: Martin Kočí
> Priority: Minor
> Attachments: MYFACES-3435.patch
> 
> 
> Two internal classes _DeltaList in API:
> 1) now use delegation pattern, but are always initialized with an ArrayList \
> instance -> use inheritance and  ArrayList as parent -> improvement in memory area, \
> reduces number of GCed object in one request/response of (_DeltaList instances/2)  \
> 2) initialize expected size of _DeltaList (for example, number of validators per \
> one component is perhaps never 10, use: new _DeltaList(5)) 3) use indexes in 'for' \
> instead of iterator (java.util.RandomAccess) ->  improvement in performance

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

       


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic