mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Mazumdar <mazumdar.an...@gmail.com>
Subject Re: Review Request 47991: Passed `Request` object by ptr instead of copying it.
Date Sun, 29 May 2016 08:51:26 GMT


> On May 29, 2016, 4:53 a.m., Vinod Kone wrote:
> > don't think i follow this change. can you explain why wrapping it in owned performs
better?

Copying the `Request` object upon every `::stream` call was very expensive. The motive behind
this change is to create the `Request` object once and then wrap it in an `Owned` pointer
for further calls and pass the pointer to the `defer` callbacks.


- Anand


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/47991/#review135417
-----------------------------------------------------------


On May 27, 2016, 10:14 p.m., Anand Mazumdar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47991/
> -----------------------------------------------------------
> 
> (Updated May 27, 2016, 10:14 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler, Michael Park, and Vinod Kone.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This change passes the `Request` object by wrapping it in
> `Owned` instead of copying it when forwarding it to `defer`.
> Ideally, this should have been a `unique_ptr`, but our
> `defer` callbacks don't currently support moves.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/src/process.cpp 988fb3b81259e7b0a6a002f5799d667892874538 
> 
> Diff: https://reviews.apache.org/r/47991/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Anand Mazumdar
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message