You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (JIRA)" <de...@myfaces.apache.org> on 2018/12/25 22:50:00 UTC
[jira] [Resolved] (MYFACES-4275) [perf] optimize TagAttributesImpl
access
[ https://issues.apache.org/jira/browse/MYFACES-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved MYFACES-4275.
----------------------------------------
Resolution: Fixed
Testcase with 1.000.000 get+getAll before:
~400ms
after the changes
~40ms
> [perf] optimize TagAttributesImpl access
> ----------------------------------------
>
> Key: MYFACES-4275
> URL: https://issues.apache.org/jira/browse/MYFACES-4275
> Project: MyFaces Core
> Issue Type: Improvement
> Reporter: Thomas Andraschko
> Assignee: Thomas Andraschko
> Priority: Major
> Fix For: 2.3.3, 3.0.0-SNAPSHOT
>
>
> See code comment:
> * TODO: PROFILE - Explore the possibility of using HashMap instead of sorted arrays.
> * The footprint should be higher, but the instanciation and access speed should be faster
> * Instanciation: from O(n log n) to O(1)
> * Access: from O(log n) to O(1)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)