commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OGNL-12) org.apache.commons.ognl.internal.ClassCacheImpl is not efficient
Date Tue, 17 May 2011 19:45:47 GMT

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

Simone Tripodi resolved OGNL-12.
--------------------------------

    Resolution: Invalid

not the better implementation ever, but it is kind of index based multi value map, no needs
to reinvent the wheel

> org.apache.commons.ognl.internal.ClassCacheImpl is not efficient
> ----------------------------------------------------------------
>
>                 Key: OGNL-12
>                 URL: https://issues.apache.org/jira/browse/OGNL-12
>             Project: OGNL (Incubating)
>          Issue Type: Improvement
>            Reporter: Simone Tripodi
>
> I know that maybe we're speaking of a small amount of data, but ClassCacheImpl implementation
based on array is not efficient at all; both {{get(Class)}} and {{put(Class, Object)}} methods
have complexity O\(n\). Using a Map we can reduce the complexity to O(1)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message