Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I'm have released a new build of the software I'm creating. Usually I build it as a debug but last time I built the project as a release and ever since that the software is behaving extremely slow. Everything is slow, for example when the user enters text into a text box it displays the text one by one very slowly. I even tried clearing the bin folder and rebuilding it as a debug but still no luck. What might be the problem?

Originally there were two timers and I removed two of them and now the software only has one timer. But the thing is the previous versions used to run really fast while having three timers. I removed unnecessary loops as much as I can find but still no luck. Also, I forgot to mention, this is only slow in other people's computers. In my computer the software works very fine. But I have a very powerful Intel Quad core processor.

I've also used task manager to see how much memory and processor capacity the software uses. And they are all normal - The program uses average of 30MB memory and 1%-3% CPU. But it's still slow
Posted
Updated 24-May-11 20:32pm
v3
Comments
Sergey Alexandrovich Kryukov 25-May-11 2:58am    
Not enough information. Any application can be done as slow as... it can.
--SA

If it runs slow on others computers but not all computers. Perhaps run a Windows Update on the computers that runs slow or it can be graphic drivers that is out dated ?

Have you try to run the program on another computer ?

Check which program is using the most CPU time, memory, threads and handles. You can use a program like Process Explorer[^]

If you have access to tools like Performance profiler[^] or Memory profiler[^]. Then try you them.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 25-May-11 2:57am    
Good points, a 5.
--SA
Kim Togo 25-May-11 3:54am    
Thanks.
Do you face this problem only running your app?
Do all the other programs behave in the same way?
Do you have intensive loops or calculations being made in a second thread?
Do you process tons of WM_TIMER or events that break your normal program flow?

If I were you and the first option/question I've made was true I would start disabling parts of the app and try to find where the stress part is located... Then you should try to optimize that part...

I'm afraid we need more information to be able to help you properly...

HTH!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-May-11 2:56am    
Quite a check list.
Few notes. #1 and #2 are the same. Thread cannot make is slower, practically, it techniques are not abused. WM_TIMER -- good point, but this is .NET; you should check: is any timers are used? Timers are really bad, in most cases. (What's "HTH"?) To me it looks like a vote of 4.

"I'm afraid we need more information to be able to help you properly..." -- exactly!
--SA
Joan M 25-May-11 3:05am    
#1 you are right my fault... :O A thread should not make it slow yes, but as it can be terribly abused and we don't know anything about the program... In some cases I'm forced to use timers to poll data from machines, again... knowing a little bit more about the program... ^^... HTH... well is my only txtspk license... I mean "Hope this helps" :P... Thank you for your feedback and vote...
Can you upload it's source code and demo soft so that i can see it and find the problem.

It can be because of high process uses of code in your project so we need to check it.

Thank you
 
Share this answer
 
Comments
obhasha07 25-May-11 2:56am    
I would really like to but I can't do it because I don't own the software. The company who hired me owns it and they wouldn't like me putting the source code on a public network

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900