Improve RequestContext::getStaticContext() perf
authorAndrii Grynenko <andrii@fb.com>
Thu, 4 Feb 2016 21:58:25 +0000 (13:58 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Thu, 4 Feb 2016 22:20:26 +0000 (14:20 -0800)
commitfc353ba6b01facad6ec1a8eb55a2e11e1483540c
treedd52079e21b5a9886775c2ab12e1cd727c55da25
parent47241bf82f54365511b514bf83c9895af68fa6ab
Improve RequestContext::getStaticContext() perf

Summary: Avoid using folly::ThreadLocal on the fast-path. This uses the fact that it is a static object.

Reviewed By: yfeldblum

Differential Revision: D2873374

fb-gh-sync-id: 978108da0c9e8576fda6849058b0262478c2841e
folly/Makefile.am
folly/Singleton.cpp
folly/Singleton.h
folly/SingletonThreadLocal.h [new file with mode: 0644]
folly/io/async/Request.h