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

is_leap isn't as efficient as it should be #6

Open
Validark opened this issue Apr 28, 2017 · 0 comments
Open

is_leap isn't as efficient as it should be #6

Validark opened this issue Apr 28, 2017 · 0 comments

Comments

@Validark
Copy link

This article explains the 100 and 400 modulo checks can be factored down to 25 and 16.

The Date algorithms page should contain this optimization.

@Validark Validark changed the title Finding Leap year isn't as efficient as it could be is_leap isn't as efficient as it should be Apr 28, 2017
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

No branches or pull requests

1 participant