use sized deallocation for overaligned-memory helpers
Summary: This diff makes the overaligned memory helpers in folly/Memory.h use the sized operator delete when it is available. These helpers perform memory allocation and deallocation for the F14 hash table. Sized deallocation is much more CPU efficient. This diff also refactors the logic of allocateOverAligned and deallocateOverAligned, removing duplication of the compile-time machinery and making the alloc/dealloc pairings more clear. Reviewed By: yfeldblum, marksantaniello Differential Revision: D10411913 fbshipit-source-id: ddd306619c28c8317fdebce8b24b18695ff16f5d
Showing
Please register or sign in to comment