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

feat: caching the govaluate expressions #1031

Merged
merged 3 commits into from
Dec 8, 2022
Merged

Conversation

timconinx
Copy link
Contributor

@timconinx timconinx commented Jun 13, 2022

Trying to provide a solution for issue #1028

All tests pass, but I'm not quite sure if every edge case is covered

Fix: #1028

@casbin-bot
Copy link
Member

@tangyang9464 @closetool @sagilio please review

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2022

CLA assistant check
All committers have signed the CLA.

enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
@abichinger
Copy link
Member

@timconinx Please make sure, that the PR title and commit messages follow the Conventional Commits spec

Otherwise it looks good to me.

@timconinx timconinx changed the title Caching the govaluate expressions feat: caching the govaluate expressions Jun 17, 2022
Copy link
Contributor

@thetorpedodog thetorpedodog left a comment

Choose a reason for hiding this comment

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

Hello! I recently did some work in this corner of the codebase and noticed something this change. I’m not a maintainer or anything, so please don’t read this as a binding request.

util/builtin_operators.go Show resolved Hide resolved
@hsluoyz hsluoyz merged commit 540b521 into casbin:master Dec 8, 2022
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

🎉 This PR is included in version 2.60.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Matcher expressions are always re-evaluated, even when they don't change
7 participants