Improve the performance of the new BatchEnforce() API
Open
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
Assessment
This issue has not been assessed yet.