Enhancement: Improve speed of diff command

We've improved the performance of the diff command when comparing snapshots
with similar content. It should run up to twice as fast as before.

https://github.com/restic/restic/pull/2598