How can I speed up my program?

I'm writing a program in which I allow the user to manually manipulate data on screen. I plot a histogram for a data set on screen, and then I allow the user to graphically normalize it. This boils down to a for loop that executes with each pixel by pixel movement of the mouse, transforming an array of about 6000-10000 data points after each mouse move. This has shown to be fairly cpu intensive, but only on a single core for any of the machines I've tested it on. The machines I intend to use it on range from 2 cores to 8.

What options do I have for speeding up my program and spreading this load across all available processors/cores?
diablo089Asked:
Who is Participating?
 
plusone3055Commented:
if its SQL based the best thing to do is Index the tables its drawing from.. Thats about all you can do
0
 
diablo089Author Commented:
Not SQL data. It's just an array of doubles.
0
 
GMGeniusCommented:
Would it not be better to process the data after the mouse move with a click?
Process after they click? or does it have to be when moving the mouse, if so maybe start calculations when moving mouse with the left mouse clicked at the same time?
0
All Courses

From novice to tech pro — start learning today.