A faster Easter date function
cppdashboard.dev/r/2026/11/a-faster-easter-date-functionThis post is a fun little side quest to kickstart my journey optimising regional calendars. Computing the date of Easter faster is not going to matter in any real application. Even in places where it might seem to matter, like high…
From the article
This post is a fun little side quest to kickstart my journey optimising regional calendars.
Computing the date of Easter faster is not going to matter in any real application. Even in places where it might seem to matter, like high frequency trading applications, it is probably better to just use an in-memory lookup table for holiday dates... However, no "Fast Date" series would be complete without some mention of this classic problem.
The rules for Easter were broadly decided at the First Council of Nicaea, organised by Emperor Constantine in 325 AD, ultimately landing on the first Sunday after the first full moon, on or after March 21 . Later, for operational efficiency, the church defined "full moon" according to a formula, which was eventually modified by Pope Gregory XIII in 1582…
Share this resource