Author Topic: Improving Performance of Play All  (Read 16034 times)

WhateverFits

  • Guru
  • ****
  • Posts: 230
    • View Profile
    • Sean Walker
Re: Improving Performance of Play All
« Reply #15 on: October 04, 2013, 09:08:09 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.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Improving Performance of Play All
« Reply #16 on: October 04, 2013, 09:09:51 pm »
lots and lots of Logging statements, around parts of the code where lots of stuff is happening, loops, etc.

-Thom

WhateverFits

  • Guru
  • ****
  • Posts: 230
    • View Profile
    • Sean Walker
Re: Improving Performance of Play All
« Reply #17 on: October 04, 2013, 09:17:09 pm »
Have you ever tried gprof? It looks useful but I've never used it.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Improving Performance of Play All
« Reply #18 on: October 06, 2013, 06:50:34 am »
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

  • Guru
  • ****
  • Posts: 230
    • View Profile
    • Sean Walker
Re: Improving Performance of Play All
« Reply #19 on: October 06, 2013, 08:01:22 am »
Do you have a test fixture for this library?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Improving Performance of Play All
« Reply #20 on: October 06, 2013, 08:05:45 am »
No.

-Thom