Optimize StringData::release a little
commit871ba9aafd2d82ef510cb0bfe96fbdc466d80176
authorJordan DeLong <jdelong@fb.com>
Tue, 30 Jul 2013 23:45:08 +0000 (30 16:45 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 5 Aug 2013 21:42:16 +0000 (5 14:42 -0700)
treed927406344e38f2e11683e914bcce4c63b4042e3
parent5cfd77fd49654832f7b11c3ea2938a3d7940d839
Optimize StringData::release a little

Strings are usually small, and failing that, usually smart
allocated.  Also, release() doesn't need to check for a null pointer
now that it's not controlled by the DELETE macro.  This just inlines
the small path and gets rid of the null check for now.

Differential Revision: D907960
hphp/runtime/base/string_data-inl.h [new file with mode: 0644]
hphp/runtime/base/string_data.cpp
hphp/runtime/base/string_data.h