diff options
Diffstat (limited to 'src/core/defs.h')
| -rw-r--r-- | src/core/defs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/defs.h b/src/core/defs.h index b1dbed18..fb9c7447 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -165,9 +165,10 @@ typedef nni_type nni_opt_type; // NNI_MAX_HEADER_SIZE is our header size. #define NNI_MAX_HEADER_SIZE ((NNI_MAX_MAX_TTL + 1) * sizeof(uint32_t)) -// NNI_EXPIRE_Q_SIZE is the default size of aio expire queue -#ifndef NNI_EXPIRE_Q_SIZE -#define NNI_EXPIRE_Q_SIZE 256 +// NNI_EXPIRE_BATCH lets us handle expiration in batches, +// reducing the number of traverses of the expiration list we perform. +#ifndef NNI_EXPIRE_BATCH +#define NNI_EXPIRE_BATCH 100 #endif #endif // CORE_DEFS_H |
