Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/dataobj/internal/encoding/pools.go

20 lines
253 B

package encoding
import (
"bytes"
"sync"
"github.com/gogo/protobuf/proto"
)
var bytesBufferPool = sync.Pool{
New: func() any {
return new(bytes.Buffer)
},
}
var protoBufferPool = sync.Pool{
New: func() any {
return new(proto.Buffer)
},
}