APC snapshot priming
commita304d566560d9d725ce618f9b74dd847273e1e4b
authorDaniel Andersson <koda@fb.com>
Wed, 20 Jan 2016 12:21:56 +0000 (20 04:21 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 20 Jan 2016 12:30:39 +0000 (20 04:30 -0800)
tree7eb7d83b38c063c5c658cf675fcdba7024c9666b
parentdd218e3fbd11fc0c7bace7c1dc0679b25e14ca8f
APC snapshot priming

Summary:
Add snapshot support for APC priming, to load faster and with less memory than current shared library format.

The new format is auto-detected when passed to the existing PrimeLibrary flag (it can even keep the .so extension).

To "upgrade" an existing .so to the new format, there is a new flag that just writes the snapshot to a file and then exits hhvm (without starting any servers).

Reviewed By: binliu19

Differential Revision: D2826183

fb-gh-sync-id: c083192d94c117fc3a7234988b23f8e9208814c6
hphp/runtime/base/program-functions.cpp
hphp/runtime/ext/apc/config.cmake
hphp/runtime/ext/apc/ext_apc.cpp
hphp/runtime/ext/apc/ext_apc.h
hphp/runtime/ext/apc/snapshot.cpp [new file with mode: 0644]
hphp/runtime/ext/apc/snapshot.h [new file with mode: 0644]
hphp/runtime/test/apc.cpp