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

Improve positionsArrayToSelectedPositions #8624

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

sopel39
Copy link
Member

@sopel39 sopel39 commented Jul 21, 2021

* Use boolean casting instead of if to avoid branching
* Finish loop early when there are no more selected positions

@sopel39 sopel39 requested review from findepi and skrzypo987 July 21, 2021 09:30
@cla-bot cla-bot bot added the cla-signed label Jul 21, 2021
@sopel39 sopel39 force-pushed the ks/improve_sel_pos branch from 96e7599 to a7f1138 Compare July 21, 2021 09:31
* Use boolean casting instead of if to avoid branching
* Finish loop early when there are no more selected positions
@sopel39 sopel39 force-pushed the ks/improve_sel_pos branch from a7f1138 to d9ae784 Compare July 21, 2021 12:56
@sopel39 sopel39 merged commit d86a2fa into trinodb:master Jul 21, 2021
@sopel39 sopel39 deleted the ks/improve_sel_pos branch July 21, 2021 12:56
@sopel39 sopel39 mentioned this pull request Jul 21, 2021
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants