As I thought, by changing the code to copy the good records rather than trying to delete the bad ones is a million times faster. The 20 second code from yesterday is now down to 8 seconds. Now the real possible combination sorting isnt even on the profiler any more, its that fast. The slowest part of the code now is the check combination routine, and only because its called 125984 times! Cant be bothered to change any of that since its pretty good anyway. At 10mm/h its now down to about 0.3 seconds. This is all for 0.01 seconds of data mind you.
For 1 second of data it takes about 8-9 seconds. So still roughly an order of 10 behind at 10mm/h.
Ha! And at 1mm/h it takes about 0.95 seconds. So we are just real time at that point.
Post a Comment