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



src/webui/master/static/js/controllers.js
<https://reviews.apache.org/r/12879/#comment47712>

    We try to stick to declaring things close to where they are used, and 
within the same scope if possible. In this case it looks like these two are 
essentially being used in place of lambdas so I think it makes sense to move 
them down.


- Ben Mahler


On July 23, 2013, 8:52 p.m., Ross Allen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12879/
> -----------------------------------------------------------
> 
> (Updated July 23, 2013, 8:52 p.m.)
> 
> 
> Review request for mesos.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Search frameworks & executors successively to save concat
> 
> Array.concat creates a new Array, which in this case is used once to
> find frameworks and executors and then thrown away. Instead the Arrays
> can be searched successively in place without allocating more memory.
> 
> 
> Diffs
> -----
> 
>   src/webui/master/static/js/controllers.js 
> dae12b61001ff0c7379169242e5d125ef6ca141b 
> 
> Diff: https://reviews.apache.org/r/12879/diff/
> 
> 
> Testing
> -------
> 
> Rendered SlaveExecutor page to verify output didn't change with this commit.
> 
> 
> Thanks,
> 
> Ross Allen
> 
>

Reply via email to