pub fn diff<T: Write>(old: &[u8], new: &[u8], writer: &mut T) -> Result<()>Expand description
Diff an “old” and a “new” file, returning a patch.
The patch can be applied to the “old” file to return the new file, with patch::patch().
§Performance
This implementation includes optimizations:
- Cache-friendly memory access patterns
- Reduced allocations
- SIMD-friendly operations where possible