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

Alexander Rukletsov edited comment on MESOS-3312 at 8/27/15 3:39 AM:
---------------------------------------------------------------------

https://reviews.apache.org/r/37826/
https://reviews.apache.org/r/37827/
https://reviews.apache.org/r/37830/


was (Author: alex-mesos):
https://reviews.apache.org/r/37826/
https://reviews.apache.org/r/37827/

> Factor out JSON to repeated protobuf conversion
> -----------------------------------------------
>
>                 Key: MESOS-3312
>                 URL: https://issues.apache.org/jira/browse/MESOS-3312
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Alexander Rukletsov
>            Assignee: Alexander Rukletsov
>              Labels: mesosphere
>
> In general, we have the collection of protobuf messages as another protobuf 
> message, which makes JSON -> protobuf conversion straightforward. This is not 
> always the case, for example, {{Resources}} class is not a protobuf, though 
> protobuf-convertible.
> To facilitate conversions like JSON -> {{Resources}} and avoid writing code 
> for each particular case, we propose to introduce {{JSON::Array}} -> 
> {{repeated protobuf}} conversion. With this in place, {{JSON::Array}} -> 
> {{Resources}} boils down to {{JSON::Array}} -> {{repeated Resource}} -> 
> (extra c-tor call) -> {{Resources}}.



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

Reply via email to