SEC-1423: Inefficient Pointcut Expression parsing in ProtectPointcutPostProcessor.java #1666
Labels
in: core
An issue in spring-security-core
type: enhancement
A general enhancement
type: jira
An issue that was migrated from JIRA
Milestone
Tudor Malene (Migrated from SEC-1423) said:
The ProtectPointcutPostProcessor.postProcessBeforeInitialization method parses each pointcut expression for each method of the present bean until it finds a match, which is highly inefficient.
The parsed pointcutExpressions can be cached in a LinkedHashSet when the pointcut is added ( see patch ), thus avoiding the parsing of the same expression for each method of the current bean.
The text was updated successfully, but these errors were encountered: