Solved

How can I speed up my program?

Posted on 2010-09-03
4
331 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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