efficient looping
Bhupesh-V opened this issue · 0 comments
Bhupesh-V commented
The statement
diff_results = self.__getLineNumbers(element.a.get('href'))
gets executed 2 times inside the loop in def __extractInfo(self, url):
method.
The problem is both times the link is same, so it should run only 1 time(i.e that is one iteration of inner loop is redundant)