Skip to content

Conversation

@pracucci
Copy link
Contributor

What this PR does:
Since #2599 we don't need to use labels builder anymore. An unsafe conversion should just be fine.

BEFORE: Benchmark_newBlockQuerierSeries-4   	  921447	      1135 ns/op
AFTER:  Benchmark_newBlockQuerierSeries-4   	 9260770	       108 ns/op

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@pracucci pracucci requested a review from pstibrany May 26, 2020 10:33
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

LGTM (failing test can be removed, as it's not real-case scenario, as discussed at https://cloud-native.slack.com/archives/CL25937SP/p1590491672334400)

Signed-off-by: Marco Pracucci <[email protected]>
@pracucci
Copy link
Contributor Author

LGTM (failing test can be removed, as it's not real-case scenario, as discussed at https://cloud-native.slack.com/archives/CL25937SP/p1590491672334400)

I double checked and looks safe. I've also opened a 1-line PR in Thanos to document it thanos-io/thanos#2662

@pracucci pracucci merged commit e19c4f9 into cortexproject:master May 26, 2020
@pracucci pracucci deleted the micro-optimization-in-newblocksquerierseries branch May 26, 2020 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants