Opened 4 years ago
Closed 4 years ago
Last modified 4 years ago
Reduce ThreadedFileWriter thread wakeup
|Reported by:||Rune Petersen <rune@…>||Owned by:||danielk|
|Component:||MythTV - General||Version:||0.26-fixes|
The writer thread will only write in chunks of 'kMinWriteSize' or larger. Currently ThreadedFileWriter::Write() will wake up the writer thread every time, even if the chunk size condition isn't met.
The patch changes ThreadedFileWriter::Write() to only wake up the writer thread is the chunk size condition is met.
This reduces cpu usage by ~9% on a 700MHz Cortex-A9 when recording DVB HD content.
Change History (5)
Changed 4 years ago by Rune Petersen <rune@…>
comment:1 Changed 4 years ago by danielk
- Owner set to danielk
- Status changed from new to accepted
comment:2 Changed 4 years ago by Daniel Thor Kristjansson <dkristjansson@…>
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 4 years ago by Rune Petersen <rune@…>
comment:4 Changed 4 years ago by wagnerrp
- Milestone changed from unknown to 0.27