commit df581e4b0ed88464667ca88d51a6b93d1159c0c0 from: Stefan Sperling date: Sun Nov 22 00:44:37 2020 UTC set diff box recursion limit to UINT_MAX by default In practice, recursion is already limited by our Myers max-effort cut and this heuristic should generally provide a better split than a limit on the number of diff boxes. A recursion limit is only required for diff configs that do not include the Myers algorithm, which we currently don't have. Discussed with Neels commit - 60c6aae16f7ac9b67326d34fca6de68561e97c0e commit + df581e4b0ed88464667ca88d51a6b93d1159c0c0 blob - 69aea0a6aaf3ddfe78f7567e8a2405ae2d0c81e0 blob + 77f774c3d3737b31b6f815a4434406dd96458a69 --- lib/diff_main.c +++ lib/diff_main.c @@ -602,7 +602,7 @@ diff_main(const struct diff_config *config, struct dif struct diff_state state = { .result = result, - .recursion_depth_left = config->max_recursion_depth ? : 32, + .recursion_depth_left = config->max_recursion_depth ? : UINT_MAX, .kd_buf = NULL, .kd_buf_size = 0, };