Summary
AbstractSecurityExpressionHandler creates new StandardEvaluationContext instances over and over, thus leading to a performance penalty in WebExpressionVoter that could be avoided imho. See https://jira.spring.io/browse/SPR-16942 and its linked tickets for more information.
Actual Behavior
AbstractSecurityExpressionHandler creates new StandardEvaluationContext instances over and over.
Expected Behavior
EvaluationContext instances are cached and the use of SimpleEvaluationContext is considered (if applicable).
Versions
This affects the 4.2.x mainline, but presumably 5.x as well.
Summary
AbstractSecurityExpressionHandler creates new StandardEvaluationContext instances over and over, thus leading to a performance penalty in
WebExpressionVoterthat could be avoided imho. See https://jira.spring.io/browse/SPR-16942 and its linked tickets for more information.Actual Behavior
AbstractSecurityExpressionHandler creates new StandardEvaluationContext instances over and over.
Expected Behavior
EvaluationContext instances are cached and the use of SimpleEvaluationContext is considered (if applicable).
Versions
This affects the 4.2.x mainline, but presumably 5.x as well.