Skip to content

Potential faster day-of-week algorithm #804

Description

@benjoffe

Hi there,

I thought you might be interested in this faster algorithm for computing the day-of-week, which I have outlined here:
https://www.benjoffe.com/fast-day-of-week

I raised this as there seemed to be interest in micro-optimisations given the previous discussion in issue #758

Of course, feel free to close this if you are uninterested.

Btw, I've updated the leap-year article on the site with your previous observation about using abs(year) with the Falk Hüffner's algorithm.

Cheers,

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-perfArea: performanceC-enhancementCategory: an enhancement with existing code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions