simhash
simhash copied to clipboard
为什么与一个python版计算出来的结果不一样?
您好,python版: https://github.com/leonsim/simhash, 用的就是本代码中的那段文字。
计算速度要慢很多,是因为有词法分析器吗?
- 计算出来的结果不一样是很正常的,你可以看一下simhash的原理就知道了。
- c++的程序速度比python的快也是符合预期的。
2.是您这个版本比python那个版本慢很多。当然我只是简单的测试了下。
你测试是把加载词典也算进去了吧,那当然慢了。
发自我的 iPhone
在 2017年6月14日,13:42,Donghua Lau [email protected] 写道:
2.是您这个版本比python那个版本慢很多。当然我只是简单的测试了下。
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.
This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.