Robert Nagy

Results 722 comments of Robert Nagy

I'm doing something like this atm: ``` stream = pino.destination({ sync: false, minLength: 4096 }) let flushing = 0 setInterval(() => { if (flushing > 8) { stream.flushSync() } else...

> Did you implement that workaround becaude you experienced some OOM crash? Correct.

I think we might need some more guidance in the docs around async mode and this. Not quite sure what that would be though.

Would it make sense to have a "maxLength" in addition to "minLength" which indicates an automatic flush?

Just regular stdout.

I don't think it's the callback. That would not cause a shutdown error. I suspect fsync throws invalid arguments synchronously if fd is invalid. How fd can be invalid is...

@vweevers this won't work as prebuildify-cross will fail for std::optional.

> That makes nextv() slower because that must then "unflatten" the array in JS land. I was thinking that the flat array could go all the way to the user...

I'm currently working with `json` encoding. It's on my roadmap to eventually move to `string` and then `Buffer` but that adds significantly complexity so currently I'm trying to find simpler...