Skip to content

ATM: use min() instead of rank[1]#7168

Merged
henrymercer merged 1 commit into
github:mainfrom
erik-krogh:useMinInsteadofRank1
Nov 18, 2021
Merged

ATM: use min() instead of rank[1]#7168
henrymercer merged 1 commit into
github:mainfrom
erik-krogh:useMinInsteadofRank1

Conversation

@erik-krogh
Copy link
Copy Markdown
Contributor

Using rank[1] is inefficient compared to using min(), and it does exactly the same.

Found while doing a "dist-upgrade" with ql-for-ql.

@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Nov 18, 2021
@erik-krogh erik-krogh requested a review from a team as a code owner November 18, 2021 13:28
@github-actions github-actions Bot added the JS label Nov 18, 2021
Copy link
Copy Markdown
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

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

Thanks Erik! Looking forward to running this QL-for-QL query in Code Scanning :)

@henrymercer henrymercer merged commit 46958e5 into github:main Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants