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
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