-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmp: completely avoid Rust fmt in verbose mode
This makes the code less readable, but gets us a massive improvement to performance. Comparing ~36M completely different files goes from ~5s to ~2.8s using -l and -b. Compared to GNU cmp, we now run the same comparison in ~50% of the time. This also improves comparing binary files. A comparison of chromium and libxul now takes ~13s on my M1 Max, compared to ~23s before. We also beat GNU cmp, which does it in ~25s.
- Loading branch information
Showing
1 changed file
with
69 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters