05-19-2005, 11:56 AM
I am trying sort a textfile (800 Kb).
Using qsort takes >5 min.
Do you know another way in QM?
Using qsort takes >5 min.
Do you know another way in QM?
Sorting big file
|
05-19-2005, 11:56 AM
I am trying sort a textfile (800 Kb).
Using qsort takes >5 min. Do you know another way in QM?
05-19-2005, 01:49 PM
I tested with winapiqm.txt, which is 379 kb. It took 4 seconds. Then I replaced str to lpstr, and then it took 100 ms. The slow part is converting string to array at the beginning. It must allocate and copy near 100000 strings. With lpstr, string allocation/copying is eliminated.
Macro: int t1=GetTickCount Function sortlpstrproc:
05-20-2005, 05:59 AM
Thanks.
|
« Next Oldest | Next Newest »
|