I came across this video the other day: https://www.youtube.com/watch?v=nH1YT1mrPt0
It's a faster(but much less flexible) way of doing logging.
The most important thing that I got out of it was the fact that the C library will do buffering. The lowest level that we do is to use fputs. This will go through the C library and use the builtin C library buffering.
Since we have the ability to buffer data in log4cxx already using a BufferedWriter, do a test to see if it would be faster to avoid the C library buffering and do a write() system call directly to write data out.
I came across this video the other day: https://www.youtube.com/watch?v=nH1YT1mrPt0
It's a faster(but much less flexible) way of doing logging.
The most important thing that I got out of it was the fact that the C library will do buffering. The lowest level that we do is to use
fputs. This will go through the C library and use the builtin C library buffering.Since we have the ability to buffer data in log4cxx already using a
BufferedWriter, do a test to see if it would be faster to avoid the C library buffering and do awrite()system call directly to write data out.