这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@captncraig
Copy link
Contributor

This is a minor optimization that should reduce gc pressure in the collect package.

Tested with a simple app that sends batches of 300 data points to a local black hole server every 30ms. Monitored with expvarmon

super unscientific data:

Before:
screen shot 2016-07-27 at 12 10 22 am

After:
screen shot 2016-07-27 at 12 12 27 am

Notice difference in HeapAlloc and Alloc. gc time is pretty much negligible at this scale, but its always good to throw away less stuff.

@gbrayut
Copy link
Contributor

gbrayut commented Jul 27, 2016

tested and LGTM

@gbrayut gbrayut merged commit d1b7d83 into master Jul 27, 2016
@gbrayut gbrayut deleted the bufferpool branch July 27, 2016 20:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants