Repository navigation
0.148.2: a stored calendar no longer sets what one date label costs - #50
Merged
Merged
Conversation
format_step collapsed the separators around an empty token with a regular expression that took cubic time on a long run of white space (4,000 spaces in a template: about a minute for one label), and trimmed a label's edges with one that took quadratic time on a long run of commas. Both are one pass now. A year was built as a list of every day on each call, so a month of 5,000,000 days cost seconds a label in format_step, weekday_for_step, breakdown_step and parse_date. A month is one run now, and each answer is arithmetic; a config whose month lengths are not all whole ints keeps the list, so an odd input answers as before. Every answer is the same: the release and this build compared on 7,071 steps of the profile fixture's calendars and of made ones, with six planted faults each turning the compare red. Eight timed cases, the same bytes as the npm SDK's test/fixtures/calendar-cost.cases.json, each fail on 0.148.1 and pass here. 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.
A stored calendar no longer sets what one date label costs: the collapse around an empty token and the edge trim are one pass, and a month is one run of days instead of a list built on every call. Every answer is the same as the previous release's.
How it is held:
calendar-cost.cases.json(the same bytes in both packages, its sha256 pinned in each test), run on the previous release first: they fail there on time, with the words right, and pass here;The commit message has the numbers.
🤖 Generated with Claude Code