> On June 27, 2014, 4:04 a.m., Dominic Hamon wrote: > > 3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp, line 163 > > <https://reviews.apache.org/r/22825/diff/4/?file=618548#file618548line163> > > > > why not just: > > > > if (n.isSome() && tokens.size() == n.get()) { > > break; > > } > > > > and remove _n and some. > > Benjamin Hindman wrote: > Great suggestion, did this for Isabel when I committed.
I used _n and some to avoid function calls at each iteration - Isabel ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22825/#review46831 ----------------------------------------------------------- On June 26, 2014, 5:49 p.m., Isabel Jimenez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/22825/ > ----------------------------------------------------------- > > (Updated June 26, 2014, 5:49 p.m.) > > > Review request for mesos, Benjamin Hindman, Dominic Hamon, and Till Toenshoff. > > > Bugs: MESOS-1522 > https://issues.apache.org/jira/browse/MESOS-1522 > > > Repository: mesos-git > > > Description > ------- > > SplitN function is stout/strings so we can choose how many tokens we want to > retreive > > > Diffs > ----- > > 3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp 08428b8 > 3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp c83156e > > Diff: https://reviews.apache.org/r/22825/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Isabel Jimenez > >
