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

Set namespace and ID as NoFinalize #956

Merged
merged 1 commit into from
Sep 27, 2018
Merged

Set namespace and ID as NoFinalize #956

merged 1 commit into from
Sep 27, 2018

Conversation

arnikola
Copy link
Collaborator

This allows the session to avoid cloning these on the WriteTagged
operation, which will save two allocations for each datapoint

This allows the session to avoid cloning these on the WriteTagged
operation, which will save two allocations for each datapoint
@@ -257,6 +257,8 @@ func (s *m3storage) Write(
id := query.Tags.ID()
// TODO: Consider caching id -> identID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caching these in an LRU would actually probably save a ton of allocs unrelated to this P.R

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's some other refactoring of this going on in #942, so don't want to step on any toes there and lead to messy merges; we'll definitely circle back on adding an LRU here

Copy link
Contributor

@richardartoul richardartoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arnikola arnikola merged commit 3190128 into master Sep 27, 2018
@arnikola arnikola deleted the arnikola/no-finalize branch September 27, 2018 19:23
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.

2 participants