perf: increase SCAN_COUNT to 1000 for faster memory scan
Virtual scroll now handles large batches without lag, so we can increase the per-iteration key count from 200 to 1000. This reduces the number of SCAN iterations and IPC round-trips by 5x.
This commit is contained in:
@@ -20,7 +20,7 @@ const minSizeKB = ref(0)
|
|||||||
const sortAsc = ref(false)
|
const sortAsc = ref(false)
|
||||||
const scanAbort = ref<AbortController | null>(null)
|
const scanAbort = ref<AbortController | null>(null)
|
||||||
|
|
||||||
const SCAN_COUNT = 200
|
const SCAN_COUNT = 1000
|
||||||
const FLUSH_INTERVAL = 100
|
const FLUSH_INTERVAL = 100
|
||||||
|
|
||||||
// --- Virtual scroll ---
|
// --- Virtual scroll ---
|
||||||
|
|||||||
Reference in New Issue
Block a user