[mythtv-commits] Ticket #11564: Feature patch to increase read size in hdhrstreamhandler.cpp
MythTV
noreply at mythtv.org
Tue May 28 19:24:09 UTC 2013
#11564: Feature patch to increase read size in hdhrstreamhandler.cpp
-------------------------------------------------+-------------------------
Reporter: Gary Buhrmaster | Owner: danielk
<gary.buhrmaster@…> | Status: new
Type: Patch - Feature | Milestone: unknown
Priority: minor | Version: Master Head
Component: MythTV - DVB | Keywords:
Severity: medium |
Ticket locked: 0 |
-------------------------------------------------+-------------------------
In ticket #10414 ( patch
http://code.mythtv.org/trac/changeset/2be3dd91fba8d438cb25d81a1ba9d0d5e8657fb6/mythtv
) the patch increased the buffersize for the hdhr. This was ineffective
in that patch, since that particular variable was no longer used. This
patch increases the maximum returned read size to be 1/8 of a second of
potential buffer (implementing, partially, what I believe the original
ticket was intended to do). With the presumption that the loop *is*
executed around 20 ms (the usleep counter) the current 64KB read limit,
with a high bitrate stream (which can produce ~100KB in 20ms), can result
in 3 or 4 calls through the hdhr library to read all the buffered data.
Increasing the amount of data to examine to the 1/8 second value (~300KB)
results in reducing the number of calls to 2 or 3 potentially reducing the
lock overheads (whether it is the higher value will depend on whether a
new packet arrived while processing the existing set of packets, and lower
bitrate content (a more common case) will show no improvement).
Patch:
https://github.com/garybuhrmaster/mythtv/commit/e25720a96f35d794209f5b0f3369086e187756ff
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11564>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list