Skip to content
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

OPA v1.2.0 TODO #1405

Open
4 tasks
anderseknert opened this issue Feb 10, 2025 · 0 comments
Open
4 tasks

OPA v1.2.0 TODO #1405

anderseknert opened this issue Feb 10, 2025 · 0 comments

Comments

@anderseknert
Copy link
Member

Since there is at least a few weeks until OPA v1.2.0 is released, I'm creating this issue to track all the things that release includes that we may benefit from in Regal, so we don't forget about it :) Will add more items later if more Regal-friendly features make it in.

  • As we can now set a custom BaseCache to use, and the base cache provides much cheaper reads than storage, we should see if it's possible to only use the base cache for the static data regal lint uses. Note that this unlikely is desirable in the language server though (as the data is not static in that context).
  • Move to use the oracle (for LSP goto definition) as that's now part of OPA's public API. I have working code for this already. Delete code we previously copied from OPA.
  • Array iteration is now ridiculously fast in OPA, so we might want to consider using arrays in some places where we currently use sets, if possible. This should be limited to hot spots though.
  • Consider adding support for the --bench flag in regal test now that it's been fixed in OPA.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant