From 6b536882491bccc433a9cb1c8f60e687a31fefee Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 2 Aug 2022 01:45:39 +0800 Subject: [PATCH] fix #195 let's see if we can raise the limit on credentials now that the performance issues have been partially addressed. --- apps/vault/src/ctap/storage.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/vault/src/ctap/storage.rs b/apps/vault/src/ctap/storage.rs index 36375efb6..1cb1514fd 100644 --- a/apps/vault/src/ctap/storage.rs +++ b/apps/vault/src/ctap/storage.rs @@ -67,11 +67,8 @@ pub(crate) const CRED_INITAL_SIZE: usize = 512; const NUM_PAGES: usize = 20; /// The limit is based on the performance of the PDDB to get a query response within -/// the compliance time-out limit. Optimization is needed to improve this number! -/// -/// Note: this might have been fixed with 6f849af2a23e99c98baa4d89ccf07261f4af7854, found -/// a busy-wait regression in an prerequisites server that would explain the slowdown. -const MAX_SUPPORTED_RESIDENTIAL_KEYS: usize = 32; +/// the compliance time-out limit. Note that most keys support about 25 credentials. +const MAX_SUPPORTED_RESIDENTIAL_KEYS: usize = 150; const MAX_PIN_RETRIES: u8 = 8; #[cfg(feature = "with_ctap2_1")]