[ https://issues.apache.org/jira/browse/ARIES-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623410#comment-14623410 ]
Dmitry Konstantinov edited comment on ARIES-1319 at 7/11/15 2:12 PM: --------------------------------------------------------------------- Please find an initial version here: https://github.com/apache/aries/pull/25/ (https://github.com/netudima/aries/commit/2fdbe927195b620b0ed069ff5883e6b1785b6e57.patch) During a more deep investigation I found some additional places to improve. Will publish some simple test results soon. was (Author: dnk): Please find an initial version here: https://github.com/apache/aries/pull/25/ During a more deep investigation I found some additional places to improve. Will publish some simple test results soon. > Reduce memory allocation in org.apache.aries.blueprint.proxy.Collaborator > class > ------------------------------------------------------------------------------- > > Key: ARIES-1319 > URL: https://issues.apache.org/jira/browse/ARIES-1319 > Project: Aries > Issue Type: Improvement > Components: Blueprint > Affects Versions: blueprint-core-1.4.2 > Reporter: Dmitry Konstantinov > > In case of intensive usage there is an memory and CPU overhead in > org.apache.aries.blueprint.proxy.Collaborator which can be easy eliminated: > 1) Stack has a thread safety overhead, it can be replaced by ArrayDeque, the > stack is used in a single thread > 2) In case of there are no interceptors - it make sense to not allocate each > time a Stack object. The reference can be set to null or a static immutable > empty stack value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)