HowardHinnant.github.io
HowardHinnant.github.io copied to clipboard
is_leap isn't as efficient as it should be
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.