folly::join takes advantage of StringPiece::size()
authorMarc Celani <marccelani@fb.com>
Tue, 6 May 2014 00:58:40 +0000 (17:58 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:57 +0000 (12:53 -0700)
commitaff1262d92fbb91ce6075a5f1a5c6039ac12d8bd
tree47d14590e1b29ecd5e5b4eb5ef008c82386e71df
parentfc2b0aa26a044486972ca8f2d526416a01b671d4
folly::join takes advantage of StringPiece::size()

Summary: folly::join should take advantage of StringPiece::size() when joining StringPieces. This avoids unnecessary resizes when appending values to the output string.

Test Plan: Reran folly unit tests for strings

Reviewed By: philipp@fb.com

FB internal diff: D1313009

@override-unit-failures
folly/String-inl.h