Use GetUniqueCombinations_new instead of GetUniqueCombinations#8214
Use GetUniqueCombinations_new instead of GetUniqueCombinations#8214greglandrum merged 5 commits intordkit:masterfrom
Conversation
…or improved speed. Update related tests.
|
@bertiewooster I would suggest replacing to maintain backwards compatibility |
|
I applied the tests from Here's the platforms the test fails on:
whereas all tests succeed on the other platforms:
This makes me wonder if |
|
It turns out that
|
@greglandrum is this what you mean, to redefine And do you recommend calling |
Yes.
I'd call Also, since the order of results is going to change, we should add a backwards incompatibility note in ReleaseNotes.md |
…ve unused variable `x`. "Alias" GetUniqueCombinations_new to GetUniqueCombinations for backwards compatibility. Add note about backwards incompatibility for GetUniqueCombinations to ReleaseNotes.md.
…Combinations for order-insensitive comparison
…in Gen2DFingerprint for consistency
|
Only test failure is |
yeah, that's an intermittent failure that happens... no need for concern |
* Remove GetUniqueCombinations, use instead GetUniqueCombinations_new for improved speed. Update related tests. * Remove unused and uncalled parameter `which` * Update tests for GetUniqueCombinations to be in numerical order. Remove unused variable `x`. "Alias" GetUniqueCombinations_new to GetUniqueCombinations for backwards compatibility. Add note about backwards incompatibility for GetUniqueCombinations to ReleaseNotes.md. * Create _compareCombinationsOrderUnimportant and use for testGetUniqueCombinations for order-insensitive comparison * Replace call to GetUniqueCombinations_new with GetUniqueCombinations in Gen2DFingerprint for consistency
…#8214) * Remove GetUniqueCombinations, use instead GetUniqueCombinations_new for improved speed. Update related tests. * Remove unused and uncalled parameter `which` * Update tests for GetUniqueCombinations to be in numerical order. Remove unused variable `x`. "Alias" GetUniqueCombinations_new to GetUniqueCombinations for backwards compatibility. Add note about backwards incompatibility for GetUniqueCombinations to ReleaseNotes.md. * Create _compareCombinationsOrderUnimportant and use for testGetUniqueCombinations for order-insensitive comparison * Replace call to GetUniqueCombinations_new with GetUniqueCombinations in Gen2DFingerprint for consistency
Reference Issue
Fixes #8207
What does this implement/fix? Explain your changes.
Remove
GetUniqueCombinations, use insteadGetUniqueCombinations_newfor improved speed; removeGetUniqueCombinations_new's unused and uncalled parameterwhich. Update related tests.Any other comments?
This PR makes the following choices; alternatives are noted:
GetUniqueCombinationsto prevent its use in the future; that old function could instead be kept.GetUniqueCombinations_newto indicate that it's the new algorithm; the name of the new function could be changed toGetUniqueCombinationsto prevent confusion over why there's a function with the prefix_newand no function without that prefix.