Improve fast path of handle remote deallocs

This adds some branch predictor and cache hints to the fast path of
processing remote deallocation. It also removes the batching.
This commit is contained in:
Matthew Parkinson
2021-10-28 14:26:41 +01:00
committed by Matthew Parkinson
parent fd408637a7
commit 19de27fdaf
4 changed files with 16 additions and 21 deletions

View File

@@ -24,16 +24,6 @@ namespace snmalloc
1 << 20
#endif
;
// Handle at most this many object from the remote dealloc queue at a time.
static constexpr size_t REMOTE_BATCH =
#ifdef USE_REMOTE_BATCH
REMOTE_BATCH
#else
4096
#endif
;
enum DecommitStrategy
{
/**