-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Gary Russell opened SPR-12610 and commented
OperatorMatches
invokes Pattern.compile()
on the right operand on every invocation. This could be relatively expensive, especially with a complex regex, even with compiled SpEL.
In many cases, the regex will be a literal.
Consider caching (at least) the most recent compiled Pattern
and reuse it if the right operand matches.
Affects: 4.1.4
Reference URL: http://stackoverflow.com/questions/19742528/spel-how-does-matches-work
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement