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

Revert the revert of "pre-define map capacities" #201

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

kentquirk
Copy link
Contributor

Reverts #200, which was a revert of a performance PR.

I tried implementing the change that I was intending to make, and it just doesn't work well.

A simple change runs the risk of blowing up memory in certain situations, so I had intended to make it configurable. But as a low-level library, libhoney-go has a well-trodden configuration path and doesn't really have a configuration model that allows for a transparent change. It would have needed to read the environment from within the libhoney Init() method and that's not really a good design. Otherwise we'd have to make all the callers of libhoney set it explicitly.

My intent was a simpler solution, but this is the simpler solution, it turns out. Oh well.

@kentquirk kentquirk requested review from a team and emilyashley October 19, 2022 01:56
@kentquirk kentquirk requested review from MikeGoldsmith and removed request for emilyashley October 19, 2022 01:56
@MikeGoldsmith MikeGoldsmith merged commit 5c60d6d into main Oct 19, 2022
@MikeGoldsmith MikeGoldsmith deleted the revert-200-revert-197-lizf.optimise-maps branch October 19, 2022 08:21
@MikeGoldsmith MikeGoldsmith added version: bump patch A PR with release-worthy changes and is backwards-compatible. no-changelog Omit this PR from changelog/release notes. labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Omit this PR from changelog/release notes. version: bump patch A PR with release-worthy changes and is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants