Solved

How can I speed up my program?

Posted on 2010-09-03
4
312 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:diablo089
  • 2
4 Comments
 
LVL 22

Expert Comment

by:plusone3055
Comment Utility
if its SQL based the best thing to do is Index the tables its drawing from.. Thats about all you can do
0
 

Author Comment

by:diablo089
Comment Utility
Not SQL data. It's just an array of doubles.
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
Comment Utility
0
 
LVL 12

Expert Comment

by:GMGenius
Comment Utility
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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now