While looking at replacing old style for loops I came across the reorder method on the RandomOrderController. Can we replace this custom O(n^2) method with a call to Collections.shuffle() O(n)?
Author: pmouawad Date: Sat Oct 3 20:10:26 2015 New Revision: 1706620 URL: http://svn.apache.org/viewvc?rev=1706620&view=rev Log: Bug 58281 - RandomOrderController : Improve randomization algorithm performance Bugzilla Id: 58281 Modified: jmeter/trunk/src/components/org/apache/jmeter/control/RandomOrderController.java jmeter/trunk/xdocs/changes.xml
(In reply to Philippe Mouawad from comment #1) > Author: pmouawad > Date: Sat Oct 3 20:10:26 2015 > New Revision: 1706620 > > URL: http://svn.apache.org/viewvc?rev=1706620&view=rev > Log: > Bug 58281 - RandomOrderController : Improve randomization algorithm > performance > Bugzilla Id: 58281 > > Modified: > > jmeter/trunk/src/components/org/apache/jmeter/control/RandomOrderController. > java > jmeter/trunk/xdocs/changes.xml (In reply to Graham Russell from comment #0) > While looking at replacing old style for loops I came across the reorder > method on the RandomOrderController. > > Can we replace this custom O(n^2) method with a call to > Collections.shuffle() O(n)? Thanks, commited.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3655