[mythtv] Re:Channel change speed

Isaac Richards ijr at po.cwru.edu
Fri Sep 12 19:09:09 EDT 2003


On Friday 12 September 2003 05:28 pm, Chris Eldredge wrote:
> I didn't look at the code but they might not be deleting the file.  But
> even if you reopen the file with O_TRUNC, rather then unlink() then
> reopening, the filesystem will still have to free all the previously used
> blocks, which is O(n) time complexity for an n-block file.  They probably
> don't pass the file handle between channel changes, which prevents the
> option of simply seeking to the beginning.
>
> My suggestion would be to rename the file, then have a background process
> unlink it while in the foreground the original file is reopened and the
> channel change continues without delay.

*ahem*

On Friday 12 September 2003 03:50 pm, Isaac Richards wrote:
> It took me less than half a minute to change it to not truncate the file
> when it resets the buffer on channel change.  Much less time than you all
> are wasting blabbering on about it.

Isaac


More information about the mythtv-dev mailing list