mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
1 parent
a8de5d1e60
commit
c3c91e9d80
2 files changed
+1
-2
No files matched your search
@@ -109,7 +109,7 @@ impl KeyValueDatabaseEngine for Arc<Engine> {
|
||||
clippy::cast_sign_loss
|
||||
)]
|
||||
let cache_size_per_thread = ((config.db_cache_capacity_mb * 1024.0)
|
||||
/ ((conduit::utils::available_parallelism() as f64 * 2.0) + 1.0)) as u32;
|
||||
/ (conduit::utils::available_parallelism() as f64).mul_add(2.0, 1.0)) as u32;
|
||||
|
||||
let writer = Mutex::new(Engine::prepare_conn(&path, cache_size_per_thread)?);
|
||||
|
||||
|
||||
Reference in new issue
Block a user