qfind_first_byte_of may suffer from global initialization order
authorPhilip Pronin <philipp@fb.com>
Fri, 25 Jan 2013 00:36:11 +0000 (16:36 -0800)
committerJordan DeLong <jdelong@fb.com>
Mon, 4 Feb 2013 17:25:53 +0000 (09:25 -0800)
commit4988b28c014b35129a6e84a47a68b03ce1ed23ca
tree9fc1831cc68a99e0e97c48964cfc59a9b26b3c6c
parentcc86cd35792f320d4111fac91ca88f1733266a8a
qfind_first_byte_of may suffer from global initialization order

Summary: ##static## handling adds ~2 more ns overhead per call (and the first call is kinda slow), but now the logic is correct now. Also inlined ##qfind_first_byte_of##.

Test Plan: unittests

Reviewed By: tudorb@fb.com

FB internal diff: D687947
folly/Range.cpp
folly/Range.h
folly/test/RangeTest.cpp