-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Remove shared_ptr in defaultRoleManager (#206)
* perf: Remove shared_ptr in defaultRoleManager * Share_ptr will cause performance loss. * Share_ptr may cause circular reference of Roles, which will cause memeory leak. * RoleManager take ownership of the resource, responsible for the application and release of Role*, Role only use this pointer. Signed-off-by: Stonexx <[email protected]> chore: Update include/casbin/rbac/default_role_manager.h Update casbin/rbac/default_role_manager.cpp Update casbin/rbac/default_role_manager.cpp Co-authored-by: Yash Pandey (YP) <[email protected]> * chore: update header align with src file Signed-off-by: Stonexx <[email protected]> Co-authored-by: Yash Pandey (YP) <[email protected]>
- Loading branch information
1 parent
3e1e242
commit 7051507
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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