Repository navigation
0.149.0: calendar.format_steps, a page of dates in one calendar - #51
Merged
Merged
Conversation
…, its own work done once The same words as format_step for every step; the year shape, the eras in order, the intercalary days' months and the week's skipped days are read once per call, each year's start and slots once per year. About six times faster on 200 dates in a calendar of 64 eras. Held against format_step on every valid calendar of the profile fixture; five planted faults each turn the new tests red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
format_steps(cfg, steps)gives the same words asformat_stepfor every step, with the calendar's own work done once per call and once per year. About six times faster on 200 dates in a calendar of 64 eras, four leap rules and a year of 1,000 slots.Tests: tests/test_calendar_steps.py holds it against
format_stepon every valid calendar of the profile fixture; five planted faults each turned it red.🤖 Generated with Claude Code