Skip to content

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

Description

@Validark

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions