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

Replace linear search with Array.exists #4847

Merged
merged 2 commits into from
Sep 29, 2021
Merged

Conversation

rgrinberg
Copy link
Member

Stop scanning once the result is found. Also simplifies the code a bit.

Stop scanning once the result is found. Also simplifies the code a bit.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rjbou
Copy link
Collaborator

rjbou commented Sep 28, 2021

Thanks!

@rjbou rjbou added this to PR in progress in Opam 2.2.0 via automation Sep 28, 2021
@rjbou rjbou added this to the 2.2.0~alpha milestone Sep 28, 2021
@rjbou rjbou moved this from PR in progress to PR finalised in Opam 2.2.0 Sep 28, 2021
@rjbou rjbou merged commit 53cc23e into ocaml:master Sep 29, 2021
Opam 2.2.0 automation moved this from PR finalised to Done Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants