honeycombio / libhoney-go

Go library for sending data to Honeycomb
Apache License 2.0
58 stars 40 forks source link

Improve performance of event maps #198

Closed kentquirk closed 1 year ago

kentquirk commented 1 year ago

Is your feature request related to a problem? Please describe. The maps used to store events are sized at 0 initially and grow as fields are added. This is expensive in Go when it hits reallocation boundaries.

Describe the solution you'd like Start with non-zero sizes for maps so that they require fewer reallocations. Make it configurable so that existing behavior won't change unless desired.

Describe alternatives you've considered

Additional context

MikeGoldsmith commented 1 year ago

Resolved by #197