Opened 3 years ago
Closed 2 years ago
Last modified 2 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 3 years ago by Rune Petersen <rune@…>
comment:1 Changed 3 years ago by danielk
- Owner set to danielk
- Status changed from new to accepted
comment:2 Changed 2 years ago by Daniel Thor Kristjansson <dkristjansson@…>
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 2 years ago by Rune Petersen <rune@…>
comment:4 Changed 2 years ago by wagnerrp
- Milestone changed from unknown to 0.27