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

opst index range not returning correct results, perf improve #285

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

bplatz
Copy link
Contributor

@bplatz bplatz commented Dec 1, 2022

opst range calls were not producing accurate results under certain circumstances

While looking at index-range, there were two blocking async calls that were frequently not needed. By making them only perform the async ops when needed it reduced time required for small lookups from an average of > 100µs to ~80µs.

The code is slightly less pretty, but given this is the most common operation we perform a 20% speed boost is welcome.

@bplatz bplatz requested a review from a team December 1, 2022 22:13
Copy link
Contributor

@cap10morgan cap10morgan left a comment

Choose a reason for hiding this comment

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

📈

m' (or m (if (identical? >= test) util/min-integer util/max-integer))]
(flake/create s' p o' dt t op m'))))
[test s p o t op m]
(let [[o' dt] (if (vector? o)
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!

@bplatz bplatz merged commit d599f52 into main Dec 2, 2022
@bplatz bplatz deleted the fix/opst-range branch December 2, 2022 11:28
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.

3 participants