I have been touting the merits of PowerBasic for some time at work.
I got my copies of DLL 6.0 can CC 2.0 and have been playing with them at home.
I wanted to show off at work so I brought everything in.
I compiled the example VBSORT.DLL and passed it around.
They asked me to code up and example of how to use it.
I sorted 48100 strings of 194 characters each in 13 seconds.
The VB 5.0 program reads in the array and passes it to the DLL for sorting.
I thought that the low performance must be due to DLL loading and unloading.
I put a button on my form to start the process so that I could do it several times without stopping the program.
I was then asked to compare with a pure VB routine to sort the array.
Imagine my shock when QSORT sorted the array in 3 seconds.
What did I do wrong? Why was VB so much faster?
Help! I have egg on my face BIG TIME.
------------------
ATB
Charles Kincaid
I got my copies of DLL 6.0 can CC 2.0 and have been playing with them at home.
I wanted to show off at work so I brought everything in.
I compiled the example VBSORT.DLL and passed it around.
They asked me to code up and example of how to use it.
I sorted 48100 strings of 194 characters each in 13 seconds.
The VB 5.0 program reads in the array and passes it to the DLL for sorting.
I thought that the low performance must be due to DLL loading and unloading.
I put a button on my form to start the process so that I could do it several times without stopping the program.
I was then asked to compare with a pure VB routine to sort the array.
Imagine my shock when QSORT sorted the array in 3 seconds.
What did I do wrong? Why was VB so much faster?
Help! I have egg on my face BIG TIME.
------------------
ATB
Charles Kincaid
Comment