Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CloneDetectionRoutines: Prefer big code clones
This reduces the calculated difference value for pairs of bigger clones. This makes sense as bigger function with the same relative difference are more likely to provide a refactoring opportunity than small functions. As a result of this change small functions are less likely to be recognized as clones which is a good property mirroring the real usefulness in theory. As the testsuite still passes this change does not break existing testcases, as more are added, the usefulness of this change will be evaluated.
- Loading branch information
657cf78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack in general.
have you thought about making the difference value dependent on the size of the function? For me it sounds like you keep shifting the focus around and maybe this could yield better results across the board.
657cf78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.