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

performance: GetMonthDay re-implemented using most faster algorithm (without cycle) #5

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

sebres
Copy link
Owner

@sebres sebres commented Aug 29, 2017

Just as quick performance fix as suggested from @martinwguy in flightaware/Tcl-bounties#4 (comment) (but without usage of suggested "Algorithm 199")...

The algorithm is pretty easy:
estimate month by calculating dayOfYear / (365/12), then do forwards/backwards correction (dummy cycle - it repeats maximum once).

@sebres sebres merged commit 4dc11f2 into master Aug 29, 2017
sebres pushed a commit that referenced this pull request Sep 14, 2021
* Add a --with-tzpath configure flag
* Fix unwanted stateful behavior when /etc/localtime does not exist
sebres pushed a commit that referenced this pull request Sep 14, 2021
Fix configure error introduced in #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant