russHyde / dupree

{dupree} helps identify code blocks that have a high level of similarity in a set of R files
https://russhyde.github.io/dupree/
Other
37 stars 0 forks source link

hedgehog tests for alignment speed #31

Open russHyde opened 5 years ago

russHyde commented 5 years ago

Code block alignments are done by calling stringdist::seq_sim In a given iteration, for each code block, seq_sim is used to compare it against all other code blocks in the set of files (seq_sim(this_code_block, all_other_code_blocks)).

There may be faster ways of doing the alignments. Suggest making an efficiency test to ensure that the speed of dupree is not adversely affected by pull-requests etc.

Use hedgehog to generate random vectors of integers that can be used as test input.