casbin / Casbin.NET

An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)
https://casbin.org
Apache License 2.0
1.14k stars 110 forks source link

Reduce memory consumption due to temporary struct #214

Closed sagilio closed 2 years ago

sagilio commented 2 years ago

In Preview.2,One Enforce will create a context and session struct, the context store some read-only dates for enforcement, and the session store some writable. I want to try to merged them into a EnforceContext struct

casbin-bot commented 2 years ago

@Sagilio

sagilio commented 2 years ago

After trying, the performance of a single larger struct will be worse, so close this issue.