HowardHinnant / HowardHinnant.github.io

50 stars 6 forks source link

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

Open Validark opened 7 years ago

Validark commented 7 years ago

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.