[
https://issues.apache.org/jira/browse/ARIES-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Konstantinov updated ARIES-1319:
---------------------------------------
Attachment: memory_allocation_before_byThread.png
memory_allocation_before_byClass.png
memory_allocation_after_byThread.png
memory_allocation_after_byClass.png
Results of memory allocation profiling are in attach.
> 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, blueprint-core-1.4.3
> Reporter: Dmitry Konstantinov
> Labels: perfomance
> Attachments: memory_allocation_after_byClass.png,
> memory_allocation_after_byThread.png, memory_allocation_before_byClass.png,
> memory_allocation_before_byThread.png
>
>
> 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)