1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00
Holger Just e805d69d84 Use low-level IO#syswrite instead of IO#write in File adapter
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.
2018-01-26 18:02:09 +01:00
..