Skip to content
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

perf: allow pre-sizing the data map #228

Merged
merged 2 commits into from
Jun 29, 2023
Merged

perf: allow pre-sizing the data map #228

merged 2 commits into from
Jun 29, 2023

Conversation

lizthegrey
Copy link
Member

@lizthegrey lizthegrey commented Jun 27, 2023

Which problem is this PR solving?

Short description of the changes

  • Adds NewEventSized() for preallocating e.data for a known number of fields where performance is critical and the map should need to avoid being copied/resized on the fly.

@lizthegrey lizthegrey requested review from a team, martin308 and kentquirk June 27, 2023 22:13
libhoney.go Show resolved Hide resolved
@vreynolds vreynolds added the status: oncall Flagged for awareness from Honeycomb Telemetry Oncall label Jun 28, 2023
Co-authored-by: Vera Reynolds <[email protected]>
@lizthegrey lizthegrey merged commit 9227eb6 into main Jun 29, 2023
3 checks passed
@lizthegrey lizthegrey deleted the lizf.prealloc branch June 29, 2023 15:02
@vreynolds vreynolds added type: enhancement version: bump minor A PR that adds behavior, but is backwards-compatible. labels Jun 29, 2023
TylerHelmuth pushed a commit to honeycombio/refinery that referenced this pull request Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: oncall Flagged for awareness from Honeycomb Telemetry Oncall type: enhancement version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants