unicode-org / icu4x

Solving i18n for client-side and resource-constrained environments.
https://icu4x.unicode.org
Other
1.38k stars 178 forks source link

Сalculation speed up for the Gregorian calendar #5849

Open Nikita-str opened 13 hours ago

Nikita-str commented 13 hours ago

Solving #5562 by implementing algo from the article for the Gregorian calendar. The article: "Euclidean Affine Functions and Applications to Calendar Algorithms" by Cassio Neri & Lorenz Schneider (Feb. 2021).

Draft PR: As I understand there is many places where parts of the logic is used and I only change the main file. Also need to run/writes benchmarks in the repo (by now, I run benches only in local pseudo repo where I test the algo). Also maybe with the same logic can be speeded up the Julian calendar.

CLAassistant commented 13 hours ago

CLA assistant check
All committers have signed the CLA.