We might avoid some temporaries in putMessagesImpl
authorNicholas Ormrod <njormrod@fb.com>
Thu, 16 Apr 2015 20:42:45 +0000 (13:42 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:43:20 +0000 (16:43 -0700)
commit0011d8a0631c54b05cd40f35f47b181109165e52
treebe184f07d4e8dc2c2f422c0903ca8541bb2f4732
parentf706bdbd7f75c3da3d7984944d80b36c44ce8d55
We might avoid some temporaries in putMessagesImpl

Summary:
This is folly github pull request https://github.com/facebook/folly/pull/184

It seems we might avoid some temporaries in putMessagesImpl
function. To do so we pass arguments directly to constructors
with the help of emplace_back member.

Test Plan:
All folly/tests, make check for 37 tests, passed.

Signed-off-by: Nicholas Ormrod <njormrod@fb.com>
Reviewed By: davejwatson@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D1998515

Tasks: 6783581

Signature: t1:1998515:1429207683:056db129405bed212f50a50821f095c8d3694ec8
folly/io/async/NotificationQueue.h