[ 
https://issues.apache.org/jira/browse/MESOS-4770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326996#comment-15326996
 ] 

Klaus Ma commented on MESOS-4770:
---------------------------------

[~mcypark]/[~bmahler], did some investigation about {{Resources}} performance 
({{--gtest_filter="*Allocation*"}}):

1. {{Resources::validate()}} is still heavy operation because of call # (1037)
2. {{Resources::operator+=}} is a heavy operation because of {{CopyFrom}}

*Test Steps*:
    1. Build Mesos Test with {{-pg}} (export CPPFLAGS=-pg CFLAGS=-pg)
    2. Run {{valgrind}} with {{--tool=callgrind}}


> Investigate performance improvements for 'Resources' class.
> -----------------------------------------------------------
>
>                 Key: MESOS-4770
>                 URL: https://issues.apache.org/jira/browse/MESOS-4770
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Benjamin Mahler
>            Assignee: Michael Park
>            Priority: Critical
>
> Currently we have some performance issues when we have heavy usage of the 
> {{Resources}} class. Currently, we tend to work around these issues (e.g. 
> reduce the amount of Resources arithmetic operations in the caller code).
> The implementation of {{Resources}} currently consists of wrapping underlying 
> {{Resource}} protobuf objects and manipulating them. This is fairly expensive 
> compared to doing things more directly with C++ objects.
> This ticket is to explore the performance improvements of using C++ objects 
> more directly instead of working off of {{Resource}} objects.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to