Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testscript: workaround quardratic behaviour of github.com/pkg/diff (#137
) The current version of github.com/pkg/diff.Diff has quadratic behaviour. This means that when we attempt a diff between relatively modest sized files, it's easy to find yourself out of memory. Therefore, when we see a diff between two large files (large defined in terms of number of lines), tersely report that as if the two were binary files, i.e. do not try to render the diff. When github.com/pkg/diff or similar supports a linear algorithm: golang/go#45200 (comment) we can revert this change.
- Loading branch information