-
Notifications
You must be signed in to change notification settings - Fork 143
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
Revert XKRX lunar/solar calendar based holidays to hardcoded dates #128
Comments
Hi @philiptromans. XKRX is certainly slow. Would you know how many annual holidays, that are currently evaluated automatically from consideration of lunar/solar calendars, would require being hardcoded instead? Quite a lot of work on the current implementation was undertaken by @elbakramer who might want to comment on the proposed changes? Reverting these holidays to hardcoded dates would be @gerrymanoim's call. If you were to go ahead with a PR, perhaps you'd be good enough to bear in mind bug #94 (perhaps it'd come out in the wash if these holidays are changed back to hardcoded dates?). Cheers |
@philiptromans, I saw your latest PR #152 (thanks!) and the suggestion again that XKRX is moved to hardcoded holidays. I notice @elbakramer hasn't commented here. Also there was no response to a couple of open issues that I asked for input on back in October (#94 and #95). Given all of which, I thnk it's fair to say elbakramer's probably hasn't got an ongoing interest in the calendar. Personally, I would also prefer to move to hardcoded dates. If the calendar is being used then it's not a lot of work for someone to update it each year. In return we'd:
@gerrymanoim, what do you reckon, should we move to hardcoded holidays if @philiptromans is happy to PR it? |
Hey sorry for the delay. Fine by me! If it is causing us maintenance headaches, let's move it back to hardcoded. |
Ok, sounds good. I'll try to sort this at some point. It'll likely be the
next time I notice a problem with the calendar though.
…On Fri, 4 Mar 2022, 22:18 gerrymanoim, ***@***.***> wrote:
Hey sorry for the delay. Fine by me! If it is causing us maintenance
headaches, let's move it back to hardcoded.
—
Reply to this email directly, view it on GitHub
<#128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOXVI76HWXCKKPERPVAZJ3U6KD3JANCNFSM5LFBVFXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
In PR #177 I've proposed moving all the special offsets implementation from If |
Worth noting that if this were to go to hardcoded dates then I believe the whole of the TestXKRXCalendar.test_feb_29_2022_in_lunar_calendar(bit of an aside but kind of related. Noted here for reference.) The above test is currently raising a DeprecationWarning:
The |
Also, see #311 including comment re broken |
Given that we have a list of Korean holidays hardcoded in, how would people feel about removing all of the Korean Lunar/Solar calendar stuff? The code's not thread-safe at initialisation time, and it's relatively slow to do its computations. I'm happy to open up the PR removing it, and add any remaining necessary hardcoded holidays.
Originally posted by @philiptromans in #125 (comment)
The text was updated successfully, but these errors were encountered: