Add a Compression Context Pool
Summary: This diff introduces a data structure that keeps a set of, well any object, but it's intended to cache compression contexts, e.g., `ZSTD_CCtx`es. These objects can be expensive to allocate but cheap to reuse. E.g., HHVM was spending 70% of its Zstd CPU allocating, memsetting, and freeing contexts before it started using a structure like this. Reviewed By: terrelln Differential Revision: D15787721 fbshipit-source-id: bda33e9028c73c14435e18ce07cfbc8989263d98
Showing
Please register or sign in to comment