mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
perf(ui): raise exact diff threshold
This commit is contained in:
parent
2ea057b01d
commit
862828c7eb
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export type ViewDiff = {
|
|||
const diffCacheLimit = 16
|
||||
// Legacy before/after payloads do not include a patch. Bound exact diffing so pathological
|
||||
// replacements cannot freeze the UI; oversized payloads still render as one coarse change hunk.
|
||||
const contentDiffMaxEditLength = 2_000
|
||||
const contentDiffMaxEditLength = 5_000
|
||||
const patchFileDiffCache = new Map<string, FileDiffMetadata>()
|
||||
const contentPatchCache: { file: string; before: string; after: string; value: PatchData }[] = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue