Skip to content

Replicate tasks slice pool causes heap allocation  #75

@ijsong

Description

@ijsong

Reclaiming replicate tasks slice to the pool causes unnecessary heap allocations since the type of argument in sync.(*Pool).Put is an interface.
We need to convert the type of pool element from slice to pointer type.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions