type sync.Pool
81 uses
sync (current package)
pool.go#L51: type Pool struct {
pool.go#L99: func (p *Pool) Put(x any) {
pool.go#L131: func (p *Pool) Get() any {
pool.go#L160: func (p *Pool) getSlow(pid int) any {
pool.go#L202: func (p *Pool) pin() (*poolLocal, int) {
pool.go#L223: func (p *Pool) pinSlow() (*poolLocal, int) {
pool.go#L289: allPools []*Pool
pool.go#L293: oldPools []*Pool
crypto/internal/fips140/drbg
rand.go#L24: var drbgPool = sync.Pool{
crypto/tls
conn.go#L972: var outBufPool = sync.Pool{
encoding/json
encode.go#L313: var encodeStatePool sync.Pool
scanner.go#L89: var scannerPool = sync.Pool{
fmt
print.go#L146: var ppFree = sync.Pool{
scan.go#L378: var ssFree = sync.Pool{
github.com/andybalholm/brotli
backward_references.go#L38: var hasherSearchResultPool sync.Pool
brotli_bit_stream.go#L445: var huffmanTreePool sync.Pool
brotli_bit_stream.go#L1116: var blockEncoderPool sync.Pool
metablock.go#L32: var metaBlockPool sync.Pool
github.com/coder/websocket
compress.go#L135: var flateReaderPool sync.Pool
compress.go#L150: var flateWriterPool sync.Pool
compress.go#L172: swPool = map[int]*sync.Pool{}
compress.go#L175: func slidingWindowPool(n int) *sync.Pool {
compress.go#L183: p = &sync.Pool{}
dial.go#L319: var bufioReaderPool sync.Pool
dial.go#L334: var bufioWriterPool sync.Pool
github.com/go-faster/jx
jx.go#L17: encPool = &sync.Pool{
jx.go#L22: writerPool = &sync.Pool{
jx.go#L27: decPool = &sync.Pool{
github.com/gotd/td/bin
pool.go#L7: pool sync.Pool
pool.go#L14: pool: sync.Pool{
github.com/gotd/td/crypto
sha256.go#L19: var sha256Pool = &sync.Pool{
github.com/gotd/td/proto
gzip.go#L18: writers sync.Pool
gzip.go#L19: readers sync.Pool
gzip.go#L24: writers: sync.Pool{
gzip.go#L29: readers: sync.Pool{},
gzip.go#L77: gzipBufPool = sync.Pool{New: func() interface{} {
github.com/klauspost/compress/flate
stateless.go#L58: var bitWriterPool = sync.Pool{
stateless.go#L65: var tokensPool = sync.Pool{
github.com/klauspost/compress/huff0
decompress.go#L220: bufs *sync.Pool
huff0.go#L120: decPool sync.Pool // *[4][256]byte buffers.
github.com/klauspost/compress/zstd
blockdec.go#L57: huffDecoderPool = sync.Pool{New: func() any {
blockdec.go#L61: fseDecoderPool = sync.Pool{New: func() any {
zip.go#L22: var zipReaderPool = sync.Pool{New: func() any {
zip.go#L38: pool = &sync.Pool{}
zip.go#L57: pool *sync.Pool
zip.go#L91: pool *sync.Pool
zip.go#L118: var pool sync.Pool
github.com/refraction-networking/utls
conn.go#L967: var outBufPool = sync.Pool{
go.opentelemetry.io/otel/attribute
encoder.go#L41: pool sync.Pool // *bytes.Buffer
encoder.go#L80: pool: sync.Pool{
go.uber.org/multierr
error.go#L177: var _bufferPool = sync.Pool{
internal/poll
splice_linux.go#L187: var splicePipePool = sync.Pool{New: newPoolPipe}
io
io.go#L655: var blackHolePool = sync.Pool{
log
log.go#L166: var bufferPool = sync.Pool{New: func() any { return new([]byte) }}
math/big
nat.go#L281: var stackPool sync.Pool
net/http
h2_bundle.go#L1206: var http2dataChunkPools = [...]sync.Pool{
h2_bundle.go#L1784: var http2fhBytes = sync.Pool{
h2_bundle.go#L3381: var http2littleBuf = sync.Pool{
h2_bundle.go#L3726: var http2bufWriterPool = sync.Pool{
h2_bundle.go#L3825: var http2sorterPool = sync.Pool{New: func() interface{} { return new(http2sorter) }}
h2_bundle.go#L4057: var http2responseWriterStatePool = sync.Pool{
h2_bundle.go#L4169: errChanPool sync.Pool
h2_bundle.go#L4203: var http2errChanPool = sync.Pool{
h2_bundle.go#L4236: errChanPool: sync.Pool{New: func() any { return make(chan error, 1) }},
h2_bundle.go#L5143: var http2writeDataPool = sync.Pool{
h2_bundle.go#L9136: var http2bufPools [7]sync.Pool // of *[]byte
h2_bundle.go#L10448: var http2gzipPool = sync.Pool{New: func() any { return new(gzip.Reader) }}
header.go#L160: var headerSorterPool = sync.Pool{
request.go#L1036: var textprotoReaderPool sync.Pool
server.go#L827: bufioReaderPool sync.Pool
server.go#L828: bufioWriter2kPool sync.Pool
server.go#L829: bufioWriter4kPool sync.Pool
server.go#L834: var copyBufPool = sync.Pool{New: func() any { return new([copyBufPoolSize]byte) }}
server.go#L847: func bufioWriterPool(size int) *sync.Pool {
transport.go#L3128: var gzipPool = sync.Pool{New: func() any { return new(gzip.Reader) }}
os
dir_unix.go#L32: var dirBufPool = sync.Pool{
reflect
type.go#L2819: framePool *sync.Pool
type.go#L2832: func funcLayout(t *funcType, rcvr *abi.Type) (frametype *abi.Type, framePool *sync.Pool, abid abiDesc) {
type.go#L2871: framePool = &sync.Pool{New: func() any {
syscall
netlink_linux.go#L53: var pageBufPool = &sync.Pool{New: func() any {
vendor/golang.org/x/net/http2/hpack
huffman.go#L14: var bufPool = sync.Pool{
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |