-
Notifications
You must be signed in to change notification settings - Fork 90
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
Generate actions HashMap at ValidatorSchema instantiation #1290
Merged
john-h-kastner-aws
merged 5 commits into
cedar-policy:main
from
tpaulus:1285-core-schema-performance
Oct 25, 2024
Merged
Generate actions HashMap at ValidatorSchema instantiation #1290
john-h-kastner-aws
merged 5 commits into
cedar-policy:main
from
tpaulus:1285-core-schema-performance
Oct 25, 2024
Conversation
This file contains 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
Signed-off-by: Tom Paulus <tpaulus@cloudflare.com>
5fb58b5
to
80b7ebc
Compare
a35ebf1
to
a5865a4
Compare
2 tasks
Signed-off-by: Tom Paulus <tpaulus@cloudflare.com>
6208ac7
to
2ef2f90
Compare
john-h-kastner-aws
approved these changes
Oct 25, 2024
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.
Looks good.
Signed-off-by: Tom Paulus <tpaulus@cloudflare.com>
2f5e11f
to
02db858
Compare
adpaco-aws
approved these changes
Oct 25, 2024
Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com> Signed-off-by: Tom Paulus <tpaulus@cloudflare.com>
fc7fd1a
to
c2dc40a
Compare
john-h-kastner-aws
approved these changes
Oct 25, 2024
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.
looks great, thanks! Will merge after CI runs. (Java build failure is expected)
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.
Description of changes
This change fixes part of the issues identified in #1285 by pulling up the expensive action inversion from CoreSchema construction to ValidatorSchema construction, which is only done once per Schema.
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy-core
,cedar-validator
, etc.)I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):