Lower the default node limit for tree diffing

Fixes #176
pull/185/head
Wilfred Hughes 2022-03-22 21:15:54 +07:00
parent 4647112e93
commit f15ec6d637
3 changed files with 8 additions and 2 deletions

@ -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

@ -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 -

@ -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");