On Mon, Sep 22, 2008 at 1:26 PM, Markus Wanner <[EMAIL PROTECTED]> wrote: > in rev 805c482bc9bb80cd393be7d3ba01a65377d91d9c I've replaced lots of > .size() == 0 (and similar) calls with .empty(). For one thing, I personally > find it clearer and easier to read. And it's considered good practice > because the implementation for most STL containers is simpler and faster. > > I didn't notice any improvement with the commit benchmark, but the annotate > one from nvm.cbench showed speedups between 4% and 15%.
I'm honestly surprised .empty() and .size() == 0 don't generate identical code, but hey. Thanks! zw _______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel