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

Refactor check and raise failure #34

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

tagliala
Copy link
Member

  • Use cover? which is much faster than include?
  • Use a guard clause to improve readability
  • Add a spec
Comparison (IPS):
              cover?:  4483987.3 i/s
            include?:  2890227.4 i/s - 1.55x  (± 0.00) slower

Coverage increased 331 / 405 LOC (81.73%)

- Use `cover?` which is much faster than `include?`
- Use a guard clause to improve readability
- Add a spec

```
Comparison (IPS):
              cover?:  4483987.3 i/s
            include?:  2890227.4 i/s - 1.55x  (± 0.00) slower
```
@tagliala tagliala force-pushed the chore/refactor-check-and-raise-failure branch from 84dec84 to 09b2814 Compare April 20, 2024 14:46
@tagliala tagliala merged commit 47e7f9c into master Apr 20, 2024
11 checks passed
@tagliala tagliala deleted the chore/refactor-check-and-raise-failure branch April 20, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant