summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 05:08:15 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 05:08:15 +0800
commitcc14ad9eb6c9b6674f83b270c64e3890ef50260a (patch)
tree29d873f0e9ec0f3130bd5a8febd7144a098b2a85
parent04a881b70f823968a940e1337d04f6feca3878c4 (diff)
downloadpttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar.gz
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar.bz2
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar.lz
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar.xz
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.tar.zst
pttbbs-cc14ad9eb6c9b6674f83b270c64e3890ef50260a.zip
comment on questionable comment
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2464 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/pttstruct.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 8a1c05a3..8d9d1e27 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -438,7 +438,10 @@ typedef struct keeploc_t {
#define VALID_USHM_ENTRY(X) ((X) >= 0 && (X) < USHM_SIZE)
#define USHM_SIZE (MAX_ACTIVE + 4)
/* USHM_SIZE 比 MAX_ACTIVE 大是為了防止檢查人數上限時, 又同時衝進來
- * 會造成找 shm 空位的無窮迴圈. 又, 因 USHM 中用 hash, 空間稍大時效率較好. */
+ * 會造成找 shm 空位的無窮迴圈.
+ * -> 若是這樣, +4 夠嗎?
+ * 又, 因 USHM 中用 hash, 空間稍大時效率較好.
+ * -> 若是因為 hashing, slot 也許要更多, 譬如兩倍? */
/* MAX_BMs is dirty hardcode 4 in mbbsd/cache.c:is_BM_cache() */
#define MAX_BMs 4 /* for BMcache, 一個看板最多幾板主 */