有没有更快的方法来找到两个文件是相似的 [英] is there any faster way to find two file is similar

查看:65
本文介绍了有没有更快的方法来找到两个文件是相似的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi-ITNOG

有没有一种更快的方法来查找两个相似的文件,而不是使用哈希码.

对大型文件使用哈希码真的很慢.

问候

hi-ITNOG

is there any faster way to find two file is similar instead of using hash code .

using hash code for large files is really slow .

regards

推荐答案

除了CG所说的
您似乎想向与其文章相关的作者问这个问题.

我建议您使用本文结尾处的论坛,以联系作者并快速获得答复.很少会发现作者正在阅读此论坛.

请在文章的消息论坛中发布相同的内容.
Apart from what CG has told,
It looks like you want to ask this question to an author related to his/her article.

I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.

Please post the same at the article''s message forum.


您可以决定,如果xx个字节相同,则它们是同一文件.哈希码不会告诉您它们是否相似,仅相同或不同.
You can make a decision that if xx bytes are the same, they are the same file. Hash codes won''t tell you if they are similar, only the same, or different.


您可以将两个文件读入内存,将字符串转换为小写,然后将两者进行比较字符串.但是,大文件仍然要比小文件花费更多的时间,因为瓶颈是硬件.
You could read both files into memory, convert the string into lower case, and compare the two strings. A large file is still going to take more time than a small one, though, because the bottleneck is the hardware.


这篇关于有没有更快的方法来找到两个文件是相似的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆