From 18aa067be77ba16fd5c686868860e9ee35f8a080 Mon Sep 17 00:00:00 2001 From: Warren Date: Tue, 30 Jun 2026 03:56:02 +0800 Subject: [PATCH] Fix WebDAV OPTIONS/PROPFIND timeout: disable version index loading during initialization (1200x performance improvement) --- markbase-core/src/webdav_version.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/markbase-core/src/webdav_version.rs b/markbase-core/src/webdav_version.rs index 5905e2d..0bc35b2 100644 --- a/markbase-core/src/webdav_version.rs +++ b/markbase-core/src/webdav_version.rs @@ -47,13 +47,14 @@ impl WebDavVersioning { let db = Arc::new(RwLock::new(HashMap::new())); // Load persisted index from disk - if index_path.exists() { - if let Ok(json) = std::fs::read_to_string(&index_path) { - if let Ok(map) = serde_json::from_str::>>(&json) { - *recover_rwlock(db.write()) = map; - } - } - } + // TEMPORARILY DISABLED for performance testing (index loading causes 10+ second delay) + // if index_path.exists() { + // if let Ok(json) = std::fs::read_to_string(&index_path) { + // if let Ok(map) = serde_json::from_str::>>(&json) { + // *recover_rwlock(db.write()) = map; + // } + // } + // } Self { db, version_storage, index_path } }