We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling the enforce method in a loop causes the memory usage to go up all the time, how can I fix this?
#include <iostream> #include <casbin/casbin.h> using namespace std; using namespace casbin; int main() { Enforcer enforcer("path/to/model.conf", "path/to/policy.csv"); string sub = "alice"; string obj = "data1"; string act = "read"; for (int i = 0; i < 10000; ++i) { if (enforcer.Enforce(sub, obj, act)) { cout << "allow" << endl; } else { cout << "deny" << endl; } } return 0; }
The text was updated successfully, but these errors were encountered:
@EmperorYP7 @sheny1xuan @cs1137195420
Sorry, something went wrong.
hsluoyz
Successfully merging a pull request may close this issue.
Description
Calling the enforce method in a loop causes the memory usage to go up all the time, how can I fix this?
Your System Info
Screenshots/Testimonials
The text was updated successfully, but these errors were encountered: