Repository navigation
Conversation
Zdev-Change-Id: Zcab7b04117e00a1fae0ceb57e7f08b8ef521927647e15241606b165f7a4eb00e
Zdev-Change-Id: Z757c255838d9ab5582918cb98071b2660dbb370a68149ff589c16d34f4410986
…and tracing Zdev-Change-Id: Zf998dffd1006fff50b23b42adcc1fc221887df0830b7a06397c01341484cce7d
Zdev-Change-Id: Za9107647ee8a830efc792dd21dd7b38a4435f208b81cc6f685607cf606421094
Zdev-Change-Id: Z9c9aa854f95a78c2fbb7e6930e3b50733187129e78720bdcdb1a830d578321ad
… rule Zdev-Change-Id: Z866642b8abb6de44b9e3b3ba31eea59a5ee562ec86fa93292ba9ce73ab1d698a
This was referenced Nov 20, 2026
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.
Several Gecode APIs took owned handles, argument arrays, callbacks, and
FloatValby value even when they only read them, paying for reference-count updates or allocations on every call. This PR enablesperformance-unnecessary-value-paramand updates the codebase to match.The parameter rule added to
docs/code-style.mdsplits types into two groups:AllowedTypes):Home, groups,Pos,Reify, variables (IntVar, etc.), variable arrays,ViewArray, open lists, and views. Copying one copies a few pointers or ids with no allocation or reference count.SharedHandlesubclasses such asIntSet,TupleSet,DFA,Rnd,Action, andCHB,SharedArray,*Args,REG, strings, and callbacks) along withFloatVal(two doubles, not a handle) are now taken byconst&when only read, or taken by value and moved withstd::movewhen stored.Most of the diff is mechanical, split into commits by area to keep review manageable:
SharedDatastorage so they are moved rather than copied.FloatVal, in its own commit.The last commit enables
performance-unnecessary-value-paramin.clang-tidyand documents the rule indocs/code-style.md.Stack
Merge in this order. #242 targets
main, and each later PR builds on the one before it so its diff shows only its own commits. The first four PRs are standalone search and random-number changes; #284 through #274 are the Gecode 7 changes split out of what used to be a single branch.