----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28078/#review61653 -----------------------------------------------------------
Ship it! include/mesos/resources.hpp <https://reviews.apache.org/r/28078/#comment103392> IMO this was a bit more organized before: ``` + - += -= ``` If you want to organize by +/- how about: ``` + += - -= ``` For some reason, += after + seems easier to read. include/mesos/resources.hpp <https://reviews.apache.org/r/28078/#comment103393> Ditto here, maybe + before +=? include/mesos/resources.hpp <https://reviews.apache.org/r/28078/#comment103394> Ditto here, maybe - before -=? include/mesos/resources.hpp <https://reviews.apache.org/r/28078/#comment103395> Could we get away with only needing <iosfwd> if we move this into the .cpp file? I think <iostream> is pretty heavyweight: ``` $ time g++ iostream.cpp g++ iostream.cpp 0.19s user 0.03s system 98% cpu 0.225 total $ time g++ iosfwd.cpp g++ iosfwd.cpp 0.03s user 0.02s system 93% cpu 0.054 total ``` This is after several runs to warm the file cache. - Ben Mahler On Nov. 15, 2014, 6:43 a.m., Jie Yu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28078/ > ----------------------------------------------------------- > > (Updated Nov. 15, 2014, 6:43 a.m.) > > > Review request for mesos, Ben Mahler and Vinod Kone. > > > Bugs: MESOS-1974 > https://issues.apache.org/jira/browse/MESOS-1974 > > > Repository: mesos-git > > > Description > ------- > > See summary and ticket. This patch does not change any code (just code > movement). > > > Diffs > ----- > > include/mesos/resources.hpp 0e37170262d3470570a3436b7835bb1d4a121056 > src/common/resources.cpp e9a0c85dc3748aa635843d98cd5993d5648ec5c2 > > Diff: https://reviews.apache.org/r/28078/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Jie Yu > >
