Read 4k at a time instead of 32 bytes. OS will read whatever is available. This basically reduces logging and a little cpu overhead
This commit is contained in:
parent
dffc7aa2fd
commit
85d5dd806e
|
@ -151,7 +151,7 @@ int ZoneMinderFifoSource::getNextFrame() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int bytes_read = m_buffer.read_into(m_fd, 32);
|
int bytes_read = m_buffer.read_into(m_fd, 4096);
|
||||||
//int bytes_read = m_buffer.read_into(m_fd, 4096, {1,0});
|
//int bytes_read = m_buffer.read_into(m_fd, 4096, {1,0});
|
||||||
if (bytes_read == 0) {
|
if (bytes_read == 0) {
|
||||||
Debug(3, "No bytes read");
|
Debug(3, "No bytes read");
|
||||||
|
|
Loading…
Reference in New Issue