"This uses BubbleSort, and the CheckBox determines whether the array to be sorted is numeric or string. (the original button and code is still there too). A ListBox is included to show multiple test results."
Well, I checked out the VB6 sorting code in your article, and was surprised to see that neither QuickSort algo was like the one I've been using. So I added it along with an additional button. Interestingly, I find my algo is about 1/3 faster. I don't recall where I got it, but obviously there are a number of variations out there. I've attached it here.
when doing some research for the sorting article i came across several Quick sort algo's. I acctualy just randomly picked two, and luckly got two that perform at different levels..
I also noticed that you added it to the Articles vb6 project.. so i wont test it in .net ...
when doing some research for the sorting article i came across several Quick sort algo's. I acctualy just randomly picked two, and luckly got two that perform at different levels..
I also noticed that you added it to the Articles vb6 project.. so i wont test it in .net ...
I'm not sure I understand (not testing it in .net), but now that you've started the other sorting thread, with all the different algorithms, perhaps I'll move my post over there.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Results of this test as run on my Vista dev system..
10 000 items in array...
32bit Numeric value.. (Long in VB6, Integer in .NET)
VB6 = 593
VB.NET = 390
String types..
vb6 = 17051
VB.NET = 3229
This is interesting. The BubbleSort test using a ListBox to hold the data showed VB6 is faster. Does this mean that the .net ListBox is slower than the one in VB6?
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
This is interesting. The BubbleSort test using a ListBox to hold the data showed VB6 is faster. Does this mean that the .net ListBox is slower than the one in VB6?
my take on this is that the .NET listbox item object is a lot larger than in VB6.
As seen in the Listbox add items test, .NET takes much longer to add items one at a time to the list. However now tou can add a lot more than just a String and a hidden value to each item..
I'm still trying to think af a few more tests to do on the listbox and combobox...
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.