You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments