H-Chris233 opened a new pull request, #422:
URL: https://github.com/apache/casbin-rs/pull/422

   ## Changes
   
   This PR includes two performance optimizations for the enforcement hot path:
   
   - Cache the `p_eft` token index to avoid repeated lookups for each policy.
   - Reuse precompiled regexes in key matching helpers.
   - Return early on `CachedEnforcer` cache hits to skip redundant argument 
conversion.
   - Add cached basic and ABAC benchmarks.
   
   ## Performance
   
   Improves cached enforcement by approximately 36%–45% on cache hits.
   
   ## Verification
   
   Tests, Clippy checks, and runtime combinations pass with both default and 
cached configurations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to