Add an option to control uncounted sharing in apc
commitcf3c5eb4aafa02a565d1bf133c5403ceaef9d5a4
authorMark Williams <mwilliams@fb.com>
Thu, 1 Mar 2018 02:20:38 +0000 (28 18:20 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 1 Mar 2018 02:42:37 +0000 (28 18:42 -0800)
treed856f56828347d01a8ceedd7c3f706b5b67ad369
parenta434618f11dee01c7952aac743c581f0457a02db
Add an option to control uncounted sharing in apc

Summary:
For really huge arrays, where almost every element has a refcount > 1,
tracking the shared elements adds considerable overhead, so add an
option to disable that for now.

Reviewed By: binliu19

Differential Revision: D7116889

fbshipit-source-id: 41f53ca765778bce3655945078121c1fcef48ec0
hphp/runtime/base/apc-array.cpp
hphp/runtime/ext/apc/ext_apc.cpp
hphp/runtime/ext/apc/ext_apc.h