Do not set startWork_ in EventBase if time measurement is disabled
authorPavlo Kushnir <pavlo@fb.com>
Thu, 29 Oct 2015 00:15:19 +0000 (17:15 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 29 Oct 2015 01:20:21 +0000 (18:20 -0700)
commitaf3fa519ac83267fabc53d3799a57dab761de0bc
treeeda532140f53db8e5b4fa2742a6f8aa49031332c
parentf3199c1a9236f6d89fcbfcb7da4d58c9863f8928
Do not set startWork_ in EventBase if time measurement is disabled

Summary: startWork_ is used only if enableTimeMeasurement is set. It gives ~0.5% performance win for mcrouter.

Reviewed By: yfeldblum

Differential Revision: D2590176

fb-gh-sync-id: 07f2189ebdec751cd0d91d191d8f595780d2808a
folly/io/async/EventBase.cpp