Avatar of diablo089
diablo089
Flag for United States of America asked on

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?
Visual Basic.NET

Avatar of undefined
Last Comment
GMGenius

8/22/2022 - Mon
plusone3055

if its SQL based the best thing to do is Index the tables its drawing from.. Thats about all you can do
diablo089

ASKER
Not SQL data. It's just an array of doubles.
ASKER CERTIFIED SOLUTION
plusone3055

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
GMGenius

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?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck