From ba8aef8a336e07b7907f7d9023d815fc90b89bae Mon Sep 17 00:00:00 2001 From: qian yangyang Date: Fri, 17 Feb 2023 11:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cache/lru.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cache/lru.h b/src/cache/lru.h index 90fd31e..473b98d 100644 --- a/src/cache/lru.h +++ b/src/cache/lru.h @@ -18,8 +18,6 @@ namespace smallkv { * 这里LockType是锁的类型,默认情况为NullLock即为无锁, * 可以传入三种锁:NullLock、MutexLock、SpinLock * - * 为什么不在运行时判断?例如if (LockType == "mutex_lock") lock. - * 答:运行时if存在开销。 * */ template class LRU final : public CachePolicy {