You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2011/06/10 20:13:59 UTC
[jira] [Created] (MYFACES-3170) [perf] use initialCapacity for
ArrayList
[perf] use initialCapacity for ArrayList
----------------------------------------
Key: MYFACES-3170
URL: https://issues.apache.org/jira/browse/MYFACES-3170
Project: MyFaces Core
Issue Type: Improvement
Components: General
Environment: myfaces trunk
Reporter: Martin Kočí
Assignee: Martin Kočí
Priority: Minor
new ArrayList() creates Object [10] and in some situation it is not necessary. For example, UIInput.addValidator allocates ArrayList of size ten but in real usage nobody adds 10 validators to one component.
Analyze usage of new ArrayList() and myfaces code and use initialCapacity if possible.
i
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira