Repository navigation
Conversation
…dinate builds faster A lone term that is a variable holding every coordinate, summed over the dimensions a constraint without a condition lacks, is counted out in the constraint's row order: its rows and columns are arithmetic, so no join places it and no sort turns the variable's order into the constraint's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA3AgfyCmR33mR1u9op
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA3AgfyCmR33mR1u9op
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
📖 2 files modified Preview · build overview · specsolve · built Dec. 6, 2026, 1:02 p.m. UTC |
This branch has not been 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.
Note
The following content was generated by AI.
A constraint without a condition whose one linear term is a variable that holds every coordinate, summed or not, is built by arithmetic in its own row order: no join places the term, no sort transposes it.
dispatch · l: whole build 0.75 s → 0.63 s._variable_termand_sum_termhand out; any other rewrite (a product, a collected named expression) is not known and takes the join as beforewhere: p_max > 0with everyp_maxpositive qualifiesmainrather than stackingMeasurements, mutation table, gates
Whole build, median of 5 warm builds, 3 alternating rounds, base
main721cdd6 vs head, same 4-core VM, idle:case-dispatch-l(generatornaming)case-dispatch-l-unit(unitnaming)p_maxzero (falls back)case-nodal-lcase-transport-lcase-storage-lpypsa-carbon_managementThe last four are within the VM's ±10% between rounds.
Constraint step (
model.timings()), median of 5, 2 rounds, dispatch at 10M entries:generator(sorts beforesnapshot)unit(sorts after)The constraint no longer depends on which name sorts first.
Mutation table: each guard removed by hand,
__pycache__dropped both sides, restored throughgit checkout --, full suite (pytest -n auto); tree clean after.test_archive, …)dense)…laid_out_in_row_order…[a-condition-on-the-rows-…])TestRowOrderCarriesNoMeaning)…[a-term-over-fewer-dimensions-…])test_update,…[…-a-condition-that-removes-some])_variable_termregisters its table…summed_on_every_row_is_neither_joined_nor_sorted)_sum_termregisters its tableTests:
test_a_whole_variable_laid_out_in_row_order_is_the_matrix_the_joins_placebuilds 12 constraint layouts × 3 variable conditions with and without the placement and compares the matrices;test_a_whole_variable_summed_on_every_row_is_neither_joined_nor_sortedholds that the stack is skipped.pixi run check(7037 passed, 995 skipped, 4 xfailed);test-benchnot run (nobench/change)https://claude.ai/code/session_018B3nA3AgfyCmR33mR1u9op
Generated by Claude Code