This repository was archived by the owner on Jul 11, 2026. It is now read-only.
Commit ed2a04d
feat(verify): GREEN — parallel chunk decompression in verify()
verify() is now &self and decompresses chunks in parallel BATCHES (rayon
into_par_iter over threads*4 chunks), feeding them to the MD5/SHA1 hashers IN
ORDER — hashing is serial, but zlib decompression (the CPU cost of a full-image
hash) now uses every core. Splits a cacheless decompress_chunk out of
read_chunk so streaming the whole image neither pollutes nor contends the LRU.
Peak memory bounded to one batch of decompressed chunks.
Correctness validated by the existing differential oracle: e2e_dftt 27/27,
incl. exfat1/nps verify() computed-MD5 == stored MD5 (parallel decompression
reproduces the exact serial byte stream). New RED test green. Adds rayon to ewf.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6dba9ed commit ed2a04d
4 files changed
Lines changed: 102 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
| 828 | + | |
829 | 829 | | |
830 | | - | |
831 | | - | |
| 830 | + | |
832 | 831 | | |
833 | 832 | | |
834 | | - | |
| 833 | + | |
835 | 834 | | |
836 | 835 | | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
853 | 866 | | |
854 | | - | |
855 | 867 | | |
856 | 868 | | |
857 | 869 | | |
| |||
891 | 903 | | |
892 | 904 | | |
893 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
894 | 923 | | |
895 | 924 | | |
896 | 925 | | |
| |||
924 | 953 | | |
925 | 954 | | |
926 | 955 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | 956 | | |
933 | 957 | | |
934 | 958 | | |
| |||
0 commit comments