feat: port fastbin to casbin - #318
Merged
Merged
Conversation
|
@Nekotoxin please review |
Contributor
Contributor
Author
We can put a link to fastbin in readme. Users who are sensitive to performance can refer it to achieve their own model. |
Contributor
|
Now I have two ideas:
class FastEnforcer(Enforcer):
def new_fast_model():
m = new FastModel
# ...
def enforce(self, *rvals):
if isinstance(self.model, FastModel ):
# ... |
Contributor
@BustDot Let’s implement it in the second way for the time being. |
Member
Member
|
@leeqvip plz review |
leeqvip
suggested changes
Sep 16, 2023
leeqvip
approved these changes
Sep 16, 2023
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 16, 2023
# [1.28.0](v1.27.0...v1.28.0) (2023-09-16) ### Features * port fastbin to casbin ([#318](#318)) ([67537d6](67537d6))
|
🎉 This PR is included in version 1.28.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Member
|
@BustDot add this new feature to the docs page after: https://casbin.org/docs/superadmin |
Chimou0
pushed a commit
to Chimou0/pycasbin
that referenced
this pull request
Jul 17, 2025
* feat: port fastbin * feat: implement FastEnforcer * fix: remove redundant init code
Chimou0
pushed a commit
to Chimou0/pycasbin
that referenced
this pull request
Jul 17, 2025
# [1.28.0](apache/casbin-pycasbin@v1.27.0...v1.28.0) (2023-09-16) ### Features * port fastbin to casbin ([apache#318](apache#318)) ([67537d6](apache@67537d6))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Replace: #285