From f37a72f3697125092baa510f26d2e2f9f0b854e0 Mon Sep 17 00:00:00 2001 From: wangha <68215275+wanghaEMQ@users.noreply.github.com> Date: Wed, 7 Jul 2021 06:35:12 +0800 Subject: Turn aio expire queue from nni list to array for efficiency. (#1449) --- src/core/defs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/defs.h') diff --git a/src/core/defs.h b/src/core/defs.h index 1dffdad0..a313c248 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -175,4 +175,9 @@ 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 +#endif + #endif // CORE_DEFS_H -- cgit v1.2.3-70-g09d2