Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: slice capacity do not reduce #16995
What version of Go are you using (
It is true that
That won't deallocate the queue entry itself, but it will allow what it pointed to to be garbage collected.
This is a fundamental property of slices. There's no way to deallocate the entry itself. You can copy to another slice if you care about the space.
Closing this as not actionable.