From 4ad5cd49ddbbfbe72ab8d35b5c5413b902afc124 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 30 Mar 2025 13:53:56 +0900 Subject: [PATCH] feat: Decrease default threshold to 10,000 It seems 100,000 is too large for some environment and we human cannot handle such a large number of items at once. So, I decrease the default to 10,000 which is still large enough for most cases. --- denops/fall/processor/collect.ts | 2 +- denops/fall/processor/match.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/denops/fall/processor/collect.ts b/denops/fall/processor/collect.ts index 23dacd2..7044799 100644 --- a/denops/fall/processor/collect.ts +++ b/denops/fall/processor/collect.ts @@ -7,7 +7,7 @@ import type { CollectParams, Source } from "jsr:@vim-fall/core@^0.3.0/source"; import { Chunker } from "../lib/chunker.ts"; import { dispatch } from "../event.ts"; -const THRESHOLD = 100000; +const THRESHOLD = 10000; const CHUNK_SIZE = 1000; export type CollectProcessorOptions = { diff --git a/denops/fall/processor/match.ts b/denops/fall/processor/match.ts index 2048076..8509e6a 100644 --- a/denops/fall/processor/match.ts +++ b/denops/fall/processor/match.ts @@ -9,7 +9,7 @@ import { ItemBelt } from "../lib/item_belt.ts"; import { dispatch } from "../event.ts"; const INTERVAL = 0; -const THRESHOLD = 100000; +const THRESHOLD = 10000; const CHUNK_SIZE = 1000; export type MatchProcessorOptions = {