Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1b82cf

Browse files
committed
ratio() gives a considerable lag on real life cases, as real_quick_ratio() gives almost as good results
1 parent a4a63f5 commit c1b82cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
8282
ratio = 1. / ratio
8383
else:
8484
conf.seqMatcher.set_seq2(page)
85-
ratio = round(conf.seqMatcher.ratio(), 3)
85+
ratio = round(conf.seqMatcher.real_quick_ratio(), 3)
8686

8787
if kb.locks.seqLock:
8888
kb.locks.seqLock.release()

0 commit comments

Comments
 (0)