apache / apache/casbin

Improve the performance of the new BatchEnforce() API

Open
#710 15 comments 0 reactions 1 assignee Claimed by @hsluoyz View on GitHub
enhancement
Dominant language
Go
Stars
20.4k
Forks
1.8k
Avg merge
5d 11h
Merged PRs (30d)
2

Description

We add a very raw BatchEnforce() API here: https://github.com/casbin/casbin/issues/617

It simply call `enforce()` in a for loop. The performance is still low if you want to list all the objects that you have access. Our next step is to do something like "set" operation, e.g., given all the objects as a set, input it into the matcher and calculate the subset that fulfills the matcher, then we have the allowed object list.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.