-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Optimize param validation through get_param(...) -> Option<Out>
#15606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
347eafa
impl solution 1.1
MiniaczQ a260910
Merge branch 'main' into try-get-param
MiniaczQ d171da5
add param validation to system
MiniaczQ e23373f
Merge branch 'main' into try-get-param
MiniaczQ 717d006
readd warnings
MiniaczQ dd22f4c
revert exclusive world try acq params
MiniaczQ 64366cb
fix some docs
MiniaczQ 7a5a2b9
more docs fixes
MiniaczQ 8f44f3b
fix unsafe comment
MiniaczQ 13b5552
ci fixes
MiniaczQ f6c97d1
more fixes
MiniaczQ 492415a
fix nonsendmut
MiniaczQ 9bd0202
more fixes...
MiniaczQ 4fc8f33
hopefuly last ci fix
MiniaczQ 1310b41
patch benches
MiniaczQ 9b900d4
Merge branch 'main' into try-get-param
MiniaczQ 1eb4ed2
post merge update
MiniaczQ f06b4d0
only check first params for combined systems
MiniaczQ 9a67eba
Merge branch 'main' into try-get-param
MiniaczQ 75ffb40
post merge fix
MiniaczQ 0bf1250
update test requirements
MiniaczQ 3b0cb96
fix links
MiniaczQ 8a25c58
fix ref
MiniaczQ 08ff038
Merge branch 'main' into try-get-param
MiniaczQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? It looks like
get_param
below does an unconditionalSome(param)
. Did you mean to callvalidate_param
there?It would be nice to keep some way of delaying validation on the sub-parameters. Like, the safe
PipeSystem
example will want to to delay validation of the second parameter, for the same reason you're doing so for the realPipeSystem
. Maybe that could be spelledParamSet<(A::Param, Option<B::Param>)>
? Although doing a blanket impl onOption
would change the semantics ofOption<Single>
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't tell now, this was made quite a while ago.
We'll definitely want someone experience check the ParamSet, DynamicSystemParam, etc.