New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Go] [Question]: Retain/Release benchmarks vs Go garbage collection #35232
Comments
To my knowledge I don't believe a benchmark has actually been done around it as those predate the original donation of the code from InfluxDB to the repository. In theory, if you know you're using the default Go allocator, you don't actually have to call The primary reasons for their existence currently are:
|
Got it. Ok that makes tons of sense. Thanks for the explanation. Going to close it now. |
Following this short discussion - apache/arrow#35232 It seems we don't really need to use Retain/Release outside the arrow library. We can always bring this back in the future if we would like to experiment if this brings better memory performance then the default go allocator.
Describe the enhancement requested
Hi! Im curious if a benchmark was ever done around the value of Retain/Release in the Go library vs not having it at all and getting the garbage collection taking care of that. Maybe we should have a mode where
Retain
/Release
is not necessary? Or there is other reason Im not aware of?cc @zeroshade
Component(s)
Go
The text was updated successfully, but these errors were encountered: