Solved

How can I speed up my program?

Posted on 2010-09-03
4
339 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
ID: 33597596
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
ID: 33597624
Not SQL data. It's just an array of doubles.
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 33597863
0
 
LVL 12

Expert Comment

by:GMGenius
ID: 33598551
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Write to file when application closes (by logoff) - VB.NET 1 37
Disable extension 8 45
VB.NET - Error - Object not set in Module 4 39
export data table to excel in vb.net 10 36
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of convertingā€¦
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦

809 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