Given a patch, I would like to know which patches are most similar. This way I can easily find out which patch it is based on. It should scan at the least all locally known patches. Possibly also the Gaia’s user patches, but if that takes too long it should be optional.
This is also a good way to find if you have already saved the patch elsewhere. Though using a hash function for that would be faster.