Click here to Skip to main content
16,020,162 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am facing some problem in my project during presentation i.e when i will go from current slide to next slide it will taking lots of time i.e. around 15 to 20 secs. I don't know the exact problem but i am using IPC message queue method to transfer slide information. My code is written in c and I am using pango, cairo and directFB libraries. If you have any solution regarding navigation and the current problem then please help me out.

Thanks
Sonali Rajput

[edit]Spurious blocks removed, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]
Posted
Updated 18-Jan-12 21:03pm
v2

1 solution

We can't help you based on that information - and it's unlikely that we can be specific without a very close perusal of your entire code, which is probably well beyond the scope of a quick question anyway.

However, there are some general things that you can do.

The first thing to do is to quantify the problem: Measure the time taken. You will then have a base line to work from.
Then, look at when the problem occurs. Is it worse with a particular input file? If so, what is special about it?
Then, start breaking it down. Time individual parts of your app (In C# I would use a Stopwatch control, in C you will need to look for yourself to find out what you have available, I can't remember) - you need to get information on which parts are going slowly. When you know where the bulk of the time is being spent, you can focus on timing the parts of that, and working out where you need to focus your attention to speed things up.

Sorry if this is general, but we can't give you specific advice with a timing problem in code we have never seen! :laugh:
 
Share this answer
 

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