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

Enum.count comparison optimisation #11

Open
H8rsbeware opened this issue Sep 10, 2023 · 0 comments
Open

Enum.count comparison optimisation #11

H8rsbeware opened this issue Sep 10, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@H8rsbeware
Copy link

H8rsbeware commented Sep 10, 2023

As mentioned on Elixir Forum

Logical comparisons like Enum.count(x) > y could exit out when count of x exceeds y. potentially saving huge amounts of time with larger collections, or be changed to Enum.count_until(x, y) by the compiler.

P.s. I dont create many issue reports, hopefully my formatting is ok :)

@hissssst hissssst added enhancement New feature or request good first issue Good for newcomers labels Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants