News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Improving Performance of Play All

Started by tschak909, September 30, 2013, 02:51:04 AM

Previous topic - Next topic

WhateverFits

Quote from: tschak909 on October 04, 2013, 08:56:13 PM
The thing that confuses me, is that if i remove the parts of the code that cause the bottleneck, the bottleneck shifts elsewhere...

-Thom

How are you doing your profiling? If the code is working as I think, then shifting bottlenecks would be exactly appropriate in this situation. I've had that so many times in so much code.
[url="http://www.seanwalker.org"]http://www.seanwalker.org[/url]

tschak909

lots and lots of Logging statements, around parts of the code where lots of stuff is happening, loops, etc.

-Thom

WhateverFits

Have you ever tried gprof? It looks useful but I've never used it.
[url="http://www.seanwalker.org"]http://www.seanwalker.org[/url]

tschak909

I've checked in a new chunk of code, that attempts to create an attribute cache, dumping all files and attributes in one massive swoop:

http://svn.linuxmce.org/trac.cgi/changeset/28134

This seems to only shave a few seconds off the deque creation, at best.

I think the same thing could be added to the MediaAttributes::LoadStreamAttributes(), to maybe shave a second or two off there, but it still remains: dealing with MediaFile and MediaAttributes slows things down immensely. Why? What am I missing? ... Has anyone else dug around in the code?

-Thom

WhateverFits

Do you have a test fixture for this library?
[url="http://www.seanwalker.org"]http://www.seanwalker.org[/url]

tschak909