From ab1071cfda6e8fbc61aa2a1f8d60e65bf5467f29 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 11 Feb 2022 21:54:24 -0800 Subject: [PATCH] Increase the default value of DFT_NODE_LIMIT Closes #136 --- CHANGELOG.md | 4 ++++ src/options.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f6d94fa8..a43759cd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Improved slider logic in larger expressions. +Increased the default value DFT_NODE_LIMIT to 100,000 (from +50,000). This increases the likelihood that files get a syntactic diff +whilst still having acceptable performance. + ### Display Fixed an issue where whole file additions/removals were printed twice. diff --git a/src/options.rs b/src/options.rs index 27a11d880..7757dc8de 100644 --- a/src/options.rs +++ b/src/options.rs @@ -6,7 +6,7 @@ use const_format::formatcp; use crate::style::BackgroundColor; -pub const DEFAULT_NODE_LIMIT: u32 = 50_000; +pub const DEFAULT_NODE_LIMIT: u32 = 100_000; pub const DEFAULT_BYTE_LIMIT: usize = 1_000_000; pub enum ColorOutput {