Skip to content

0.149.0: calendar.format_steps, a page of dates in one calendar - #51

Merged
tmoosting merged 1 commit into
mainfrom
format-steps
Nov 24, 2026
Merged

tmoosting merged 1 commit into
mainfrom
format-steps

Conversation

@tmoosting

Copy link
Copy Markdown
Member

format_steps(cfg, steps) gives the same words as format_step for 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_step on every valid calendar of the profile fixture; five planted faults each turned it red.

🤖 Generated with Claude Code

…, 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>
@tmoosting
tmoosting merged commit c1df2d0 into main Nov 24, 2026
11 checks passed

This branch was previously deployed

1 inactive deployment
pypi — c1df2d08 Deployed Nov 24, 2026 by tmoosting via publish #238
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