Nigel Pearson <[EMAIL PROTECTED]> writes:

>> I notice that the performance of playback seems to be suboptimal.
>
>       Indeed, but I don't think it far behind i386?

No, that's exactly my point: it seems like it's probably too slow
everywhere.  And as it turned out I made a 1-line fix that resulted in
a major optimization.  Still not enough to make HDTV playback look
good, but it's a start.

The frontend was doing a terribly slow regexp creation/search sequence
in TV::GetQueuedChanNum that was soaking 14.6% of the process' CPU
cycles.

--- libs/libmythtv/tv_play.h	(revision 8519)
+++ libs/libmythtv/tv_play.h	(working copy)
@@ -213,7 +213,7 @@
     bool HasQueuedInput(void) const
         { return !GetQueuedInput().isEmpty(); }
     bool HasQueuedChannel(void) const
-        { return queuedChanID || !GetQueuedChanNum().isEmpty(); }
+        { return queuedChanID || !queuedChanNum.isEmpty(); }
 
     // get queued up input
     QString GetQueuedInput(void)   const { return queuedInput; }
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to