Skip to content

Various performance improvements#1758

Merged
anderseknert merged 1 commit intoopen-policy-agent:mainfrom
anderseknert:perf-and-such
Nov 7, 2025
Merged

Various performance improvements#1758
anderseknert merged 1 commit intoopen-policy-agent:mainfrom
anderseknert:perf-and-such

Conversation

@anderseknert
Copy link
Copy Markdown
Member

  • Much faster file filtering by avoiding recompiling ignore patterns, and function literal allocation in Rego filter
  • Avoid using .Split function where possible
  • Unify how ast.Location is serialized, and make it as fast as possible
  • Add more helpers for retrieving lines in text

- Much faster file filtering by avoiding recompiling ignore patterns, and function liter allocation in Rego filter
- Avoid using .Split function where possible
- Unify how ast.Location is serialized, and make it as fast as possible
- Add more helpers for retrieving lines in text

Signed-off-by: Anders Eknert <anders@eknert.com>
Copy link
Copy Markdown
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anderseknert anderseknert merged commit ac35695 into open-policy-agent:main Nov 7, 2025
8 checks passed
@anderseknert anderseknert deleted the perf-and-such branch November 7, 2025 13:55
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

Successfully merging this pull request may close these issues.

2 participants