Compare implementations
Closed this issue · 2 comments
tshemsedinov commented
- Manual buffering https://github.com/metarhia/metalog/tree/from-impress
- Use
writableBuffer
https://github.com/metarhia/metalog/tree/writable-buffer-cork - Use
fs.open/write
https://github.com/metarhia/metalog/tree/use-fs-open
tshemsedinov commented
For each implementation:
- Determine actual disk operation number
- Do load tests with different buffer size
- Do load tests with different fetch interval
Additional:
- See node.js sources for
WritableStream
- See other loggers
- Read articles about node.js fs API and logging
tshemsedinov commented
New implementation
- Use single preallocated buffer and
buf.write(string[, offset[, length]][, encoding])