Optimize perf of EventBase with new option.
authorAndre Pinto <aap@fb.com>
Fri, 20 Feb 2015 22:51:39 +0000 (14:51 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:27:56 +0000 (19:27 -0800)
commit2f3b69cc03f35a021614cfd14c9dd43f9ebc915e
tree6ecafca268e05c12083308ed13ce3337d1fb7034
parent215e906491aa017e3a46610aa8efc204bbc92dd3
Optimize perf of EventBase with new option.

Summary:
Add option to disable time measurement in EventBase::loopBody()
to improve performances when time measurement is not used.

Test Plan:
Unit tests, benchmarking and manual tests.

Reviewed By: pavlo@fb.com

Subscribers: trunkagent, folly-diffs@, yfeldblum

FB internal diff: D1846020

Tasks: 6086197

Signature: t1:1846020:1424459703:9686a84027e1137ee43eb0458b0baa4fee3a8abf
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/test/EventBaseBenchmark.cpp [new file with mode: 0644]
folly/io/async/test/EventBaseTest.cpp