[mythtv-commits] Ticket #11252: Reduce DeviceReadBuffer thread wakeup

MythTV noreply at mythtv.org
Wed Jan 2 21:12:16 UTC 2013


#11252: Reduce DeviceReadBuffer thread wakeup
------------------------------------+----------------------------
 Reporter:  Rune Petersen <rune@…>  |          Owner:  danielk
     Type:  Patch - Feature         |         Status:  accepted
 Priority:  minor                   |      Milestone:  unknown
Component:  MythTV - General        |        Version:  0.26-fixes
 Severity:  medium                  |     Resolution:
 Keywords:                          |  Ticket locked:  0
------------------------------------+----------------------------

Comment (by Daniel Thor Kristjansson <dkristjansson@…>):

 In [changeset:6912383b2c0c59df12aa9c8af521200fbe4e585d/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="6912383b2c0c59df12aa9c8af521200fbe4e585d"
 Reduce # number DeviceReadBuffer::Read() calls.

 Refs #11252.

 This reduces the number of reads per second we make in the stream handlers
 utilizing the DRB. It does this by waiting 20 ms for at least
 dev_read_size
 bytes rather than 500 ms for min_read bytes. The device reads are larger
 than the minimum read so this actually results in waiting a bit longer
 under normal conditions while returning more quickly when we're not
 getting
 data from the device. A win-win.
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11252#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list