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

Simplify tags #3923

Merged
merged 2 commits into from
Jan 26, 2021
Merged

Simplify tags #3923

merged 2 commits into from
Jan 26, 2021

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Jan 26, 2021

Just noticed while skimming that this file seemed drastically over-complicated.
As the keys are all consts, this should mean that the net change for all this is that these take one slice pointer more space per instance. And binary size is slightly smaller due to fewer types / a smaller type->interface lookup table.

Separately, now that it's simpler, some of the variations are more noticeable.
It may be worth standardizing further, e.g.:

  • sanitizing everything (except perhaps the kafka partition)
  • get rid of the "unknown" constructors? I can see them having some use, but it seems kinda random what has it and what doesn't.

@coveralls
Copy link

coveralls commented Jan 26, 2021

Coverage Status

Coverage increased (+0.05%) to 61.678% when pulling 42ffbc5 on tags into 883848e on master.

Just noticed while skimming that this file seemed drastically over-complicated.
As the keys are all consts, this should mean that the net change for all this is
that these take one slice pointer more space per instance.

Separately, now that it's simpler, some of the variations are more noticeable.
It may be worth standardizing further, e.g.:
- sanitizing everything (except perhaps the kafka partition)
- get rid of the "unknown" constructors?  I can see them having some use, but it seems kinda random what has it and what doesn't.
@Groxx Groxx merged commit 0ca1028 into master Jan 26, 2021
@Groxx Groxx deleted the tags branch January 26, 2021 02:49
github-actions bot pushed a commit to vytautas-karpavicius/cadence that referenced this pull request Feb 4, 2021
I just noticed while skimming that this file seemed drastically over-complicated.
As the keys are all consts, this should mean that the net change for all this is that these take one slice pointer more space per instance.  And binary size is marginally smaller due to fewer types / a smaller type->interface lookup table.

Separately, now that it's simpler, some of the variations are more noticeable.
It may be worth standardizing further, e.g.:
- sanitizing everything (except perhaps the kafka partition)
- get rid of the "unknown" constructors?  I can see them having some use, but it seems kinda random what has it and what doesn't.
yux0 pushed a commit to yux0/cadence that referenced this pull request May 4, 2021
I just noticed while skimming that this file seemed drastically over-complicated.
As the keys are all consts, this should mean that the net change for all this is that these take one slice pointer more space per instance.  And binary size is marginally smaller due to fewer types / a smaller type->interface lookup table.

Separately, now that it's simpler, some of the variations are more noticeable.
It may be worth standardizing further, e.g.:
- sanitizing everything (except perhaps the kafka partition)
- get rid of the "unknown" constructors?  I can see them having some use, but it seems kinda random what has it and what doesn't.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants