SharedMem takes capacity as parameter
Summary:
Prior to this diff, (1) every SharedMem.LocalCache used a Hashtbl capacity of 1000, (2) every SharedMem.WithCache used a local Hashstbl cache of capacity 1000.
I think that each cache will benefit from being able to adjust its own size.
This diff changes capacity to be something you configure on a per-cache basis.
I left them all at their existing values of 1000. Tweaks can be done in a future state.
(Except: I altered the capacity of Parser_options_provider to just 1 because that's all there'll ever be!)
Reviewed By: arxanas
Differential Revision:
D20124735
fbshipit-source-id:
a9afbacd51e5bc7065f6bde5cebec5008ca722d0