Closed vgarvardt closed 6 years ago
Great catch @vgarvardt!
Everything seems to work and tests pass so I'm good with this. Clean abstraction to a function as well.
One tiny thing regarding the comments, could you possibly update to stick with the current format of comments that the rest of the files have for consistency?
Thanks /Marc
@marcqualie sorry about that - applied autoformatting to the file with my default code style. Should be fixed now.
Thanks for the great contribution @vgarvardt!
@marcqualie what is the release cycle of the library? Is there estimated date when the patch will be available in the release version?
I use your library for
statsd
backend in ourhellofresh/stats-php
library. Recently we added quite a lot of new metrics to one of our legacy monolith project to profile some bottlenecks and found that although metrics are sent via UDP we got significant performance degradation. During the investigation we found thatstatsd
opens new socket connection for every metric being sent, that is quite expensive operation.I fixed the issue in our library - https://github.com/hellofresh/stats-php/pull/3 (we tested it before merging), but I think it would be useful to have this feature/fix in the base library.