Faster accessors for dynamic values
authorPavlo Kushnir <pavlo@fb.com>
Sat, 20 Sep 2014 00:02:35 +0000 (17:02 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:20:00 +0000 (15:20 -0700)
commit8c62ae77eeadc77735fa31a695c8c6f2ca81f2d2
treed8e17f5e051651e77bbf66037cd3cb14a8410ba9
parentcbfe1b0cae5a8f2efc7ddd03c5e120735e49d464
Faster accessors for dynamic values

Summary:
Sometimes it is useful to have a fast accessor to a value stored in dynamic, without any type conversion. These still do the type check, but compiler has more room for optimization.

Test Plan: build folly, will add unit tests/benchmarks if this makes sense at all.

Reviewed By: njormrod@fb.com

Subscribers: jdelong, njormrod

FB internal diff: D1564867
folly/dynamic-inl.h
folly/dynamic.h
folly/test/DynamicTest.cpp