diff --git a/CHANGELOG.md b/CHANGELOG.md index 5750164f7..031bd4bc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## 0.24 (unreleased) +### Diffing + +Reduced the default value of DFT_NODE_LIMIT from 100,000 to +30,000. This fixes cases where files near the limit would use too much +memory and not terminate. + ### Display Fixed an issue where hunks would be missing lines. This occurred in diff --git a/sample_files/compare.expected b/sample_files/compare.expected index 06f3bfe05..4697dd9c2 100644 --- a/sample_files/compare.expected +++ b/sample_files/compare.expected @@ -62,7 +62,7 @@ sample_files/load_before.js sample_files/load_after.js c5a352313dfb4ae1818190f144c4874b - sample_files/modules_before.ml sample_files/modules_after.ml -25118f4e0b2d5be687abed4ff3106d3d - +4c0613c6038eaea73e10a91e7a86e916 - sample_files/multibyte_before.py sample_files/multibyte_after.py 8a5e31775d5e788e9158bd4a36e03254 - diff --git a/src/options.rs b/src/options.rs index 539c75682..a93d77c8c 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 = 100_000; +pub const DEFAULT_NODE_LIMIT: u32 = 30_000; pub const DEFAULT_BYTE_LIMIT: usize = 1_000_000; const USAGE: &str = concat!(env!("CARGO_BIN_NAME"), " [OPTIONS] OLD-PATH NEW-PATH");