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

Guangya Liu commented on MESOS-4770:
------------------------------------

[~jvanremoortere] had some investigation for this and the prototype code is 
here (a bit old but good enough for investigation)

1) 
https://github.com/jmlvanre/mesos/commit/f39f49ca0876f61fc94e752fc3c4f14377b1d329
2) 
https://github.com/jmlvanre/mesos/commit/7b4ac74449044d892e25ee31a297d50254afd1e0
3) 
https://github.com/jmlvanre/mesos/commit/4fc05821b4fa3c30dd1fed66ba7fc4498ee29efb

The performance was improved 2x times based on [~jvanremoortere] 's test.

> 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
>            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