Skip to content

Commit 4ad5cd4

Browse files
committed
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.
1 parent 6d491d5 commit 4ad5cd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

denops/fall/processor/collect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { CollectParams, Source } from "jsr:@vim-fall/core@^0.3.0/source";
77
import { Chunker } from "../lib/chunker.ts";
88
import { dispatch } from "../event.ts";
99

10-
const THRESHOLD = 100000;
10+
const THRESHOLD = 10000;
1111
const CHUNK_SIZE = 1000;
1212

1313
export type CollectProcessorOptions = {

denops/fall/processor/match.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ItemBelt } from "../lib/item_belt.ts";
99
import { dispatch } from "../event.ts";
1010

1111
const INTERVAL = 0;
12-
const THRESHOLD = 100000;
12+
const THRESHOLD = 10000;
1313
const CHUNK_SIZE = 1000;
1414

1515
export type MatchProcessorOptions = {

0 commit comments

Comments
 (0)