Skip to content

Conversation

@yperbasis
Copy link
Member

@yperbasis yperbasis requested a review from Giulio2002 May 28, 2024 20:44
@AskAlexSharov
Copy link
Collaborator

FYI: I did (6 months ago) try to use clear on map[int]*data type. And it was very slow. Because it did try to do some GC-related things on * pointers. It was very visible on pprof. Maybe it will be improved in future versions of Go.
This PR seems doesn't have such cases.

@AskAlexSharov AskAlexSharov merged commit da059e5 into main May 29, 2024
@AskAlexSharov AskAlexSharov deleted the clear branch May 29, 2024 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants