Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Use binary search in getSeriesIndex #621

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

Rustin170506
Copy link
Contributor

Remove TODO and use the binary search here.

Copy link
Collaborator

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

Thank you for looking into that TODO 🎉

LGTM

pkg/phlaredb/profiles.go Show resolved Hide resolved
@simonswine simonswine merged commit b1a77df into grafana:main Apr 13, 2023
@Rustin170506
Copy link
Contributor Author

Thanks for your review! 💚 💙 💜 💛 ❤️

@cyriltovena
Copy link
Collaborator

I suspect this has introduce a bug. #640 @hi-rustin any quick idea ?

Rustin170506 added a commit to Rustin170506/phlare that referenced this pull request Apr 24, 2023
cyriltovena pushed a commit that referenced this pull request Apr 24, 2023
cyriltovena pushed a commit that referenced this pull request Apr 24, 2023
cyriltovena pushed a commit that referenced this pull request Apr 24, 2023
simonswine added a commit to simonswine/phlare that referenced this pull request Apr 26, 2023
* Use binary search in `getSeriesIndex`
* Now with a fixed behaviour for nil rowRanges and a related test.

Co-authored-by: Rustin <rustin.liu@gmail.com>
simonswine added a commit to simonswine/phlare that referenced this pull request Apr 26, 2023
This are additional test cases from the PR grafana#621, which we reverted.
simonswine added a commit to simonswine/phlare that referenced this pull request Apr 27, 2023
This are additional test cases from the PR grafana#621, which we reverted.
simonswine added a commit that referenced this pull request Apr 27, 2023
This are additional test cases from the PR #621, which we reverted.
simonswine added a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
* Use binary search in `getSeriesIndex`

* Add a test case, which will trigger the nil row range case

---------

Co-authored-by: Christian Simon <simon@swine.de>
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
simonswine added a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
This are additional test cases from the PR grafana/phlare#621, which we reverted.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants