mirror of
https://github.com/meineerde/rackstash.git
synced 2026-02-01 01:37:12 +00:00
Since 1. we are using binmode and do not expect any conversation of newlines or encodings to take place, and 2. we are only writing to the open file when we have squired the mutex of the adapter instance we can safely use the syswrite method to write logs. In the end, this uses the same low-level syscall as `IO#write` but with less overhead.