Skip to content

CPP/C#: use min() instead of rank[1]()#6501

Merged
MathiasVP merged 1 commit intogithub:mainfrom
erik-krogh:rank
Aug 18, 2021
Merged

CPP/C#: use min() instead of rank[1]()#6501
MathiasVP merged 1 commit intogithub:mainfrom
erik-krogh:rank

Conversation

@erik-krogh
Copy link
Copy Markdown
Contributor

@erik-krogh erik-krogh commented Aug 18, 2021

rank[1](...) and min(..) does the same thing. But the latter performs better.

For JS it gave a small performance improvement (see #6462).

@erik-krogh erik-krogh marked this pull request as ready for review August 18, 2021 09:29
@erik-krogh erik-krogh requested review from a team as code owners August 18, 2021 09:29
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

LGTM.

@geoffw0
Copy link
Copy Markdown
Contributor

geoffw0 commented Aug 18, 2021

I'll give the C# team a bit of time in case they want to respond, but otherwise I'm happy to merge this.

@MathiasVP MathiasVP merged commit 27df272 into github:main Aug 18, 2021
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.

4 participants