D6147: discovery: move cl.hasnode outside of the for-loop

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Mar 19 07:21:28 EDT 2019


pulkit added a comment.


  @lothiraldan There is no significant performance benefit which I am able to notice. There is minor improvement of around 0.2 sec on our large repo but that is not stable.
  
  I was reviewing one of the patches when I saw this code and found it needs some cleanup and did that.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6147

To: pulkit, #hg-reviewers
Cc: lothiraldan, mercurial-devel


More information about the Mercurial-devel mailing list