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

perf: various small improvements #7357

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

anderseknert
Copy link
Member

Mostly by having more built-in functions check that they actually did something, or can return an operand instead of allocating a result.

This saves about 200k allocations in regal lint bundle.

@anderseknert anderseknert force-pushed the small-perf-fry branch 4 times, most recently from 011c23c to 899e321 Compare February 18, 2025 16:00
Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Mostly by having more built-in functions check that they
actually *did* something, or can return an operand instead
of allocating a result.

This saves about 200k allocations in `regal lint bundle`.

Signed-off-by: Anders Eknert <[email protected]>
@johanfylling johanfylling merged commit d6b8e6d into open-policy-agent:main Feb 28, 2025
28 checks passed
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