Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
collect: creating buffer pool for sending datapoints #1838
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:
Notice difference in HeapAlloc and Alloc. gc time is pretty much negligible at this scale, but its always good to throw away less stuff.