phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

RingbufferWriter is needed #11

Closed phuslu closed 2 years ago

phuslu commented 4 years ago

Currently, ringbuffer implementation in golang is not good enough, we should introduce a ringbuffer writer from scratch.

  1. https://github.com/pltr/onering/
  2. https://github.com/rs/zerolog/tree/master/diode/
  3. https://github.com/smartystreets-prototypes/go-disruptor
phuslu commented 4 years ago

a draft committed https://github.com/phuslu/log/blob/master/ring.go

phuslu commented 4 years ago

performance benchmark is not good enough, close

xenking commented 3 years ago

Maybe this would be useful https://github.com/wait-free/ringbuffer Or this https://github.com/Workiva/go-datastructures/blob/master/queue/ring.go

phuslu commented 2 years ago

close this issue for no plan in current.