Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare CalendarArithmetic with new PrecompiledData type parameter #4378

Closed

Conversation

Manishearth
Copy link
Member

See comment in #3933 (comment)

This adds a &PrecompiledData parameter and threads it through everywhere (not yet using it). This is a rather icky refactor; I've taken some steps to make it not-too-icky, but it's still icky.

There is a way by which we may avoid having to do this: if we are certain that we want to cache all relevant info for the date's year on a date itself (likely: leap month info and ratadie) such that provided the year is not changed, the precompiled data store does not need to be hit. In that case the refactor is simpler since we just need to add a YearInfo field to ArithmeticDate, which we haven't added yet.

@Manishearth Manishearth marked this pull request as draft November 28, 2023 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant