<commit_before>package tarantool

type packedPacketPool struct {
	queue chan *packedPacket
}

func NewPackedPacketPool() *packedPacketPool {
	return &packedPacketPool{
		queue: make(chan *packedPacket, 10240),
	}
}

func (p *packedPacketPool) Get() *packedPacket {
	select {
	case pp := <-p.queue:
		pp.pool = p
		pp.code = 0
		pp.requestID = 0
		pp.body = nil
		pp.buffer.Reset()
		return pp
	default:
		pp := &packedPacket{}<commit_msg>Reduce packet pool size<commit_after>package tarantool

type packedPacketPool struct {
	queue chan *packedPacket
}

func NewPackedPacketPool() *packedPacketPool {
	return &packedPacketPool{
		queue: make(chan *packedPacket, 1024),
	}
}

func (p *packedPacketPool) Get() *packedPacket {
	select {
	case pp := <-p.queue:
		pp.pool = p
		pp.code = 0
		pp.requestID = 0
		pp.body = nil
		pp.buffer.Reset()
		return pp
	default:
		pp := &packedPacket{}
{'fraction_non_alphanumeric': 0.11751412429378531, 'fraction_numerical': 0.014689265536723164, 'mean_word_length': 4.091954022988506, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6149736', 'n_tokens_mistral': 342, 'n_tokens_neox': 309, 'n_words': 82}