jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
68 stars 49 forks source link

Optimize number of ValueExpressionImpl and MethodExpressionImpl #24

Closed glassfishrobot closed 2 years ago

glassfishrobot commented 13 years ago

ExpressionBuilder creates instances of ValueExpressiona and MethodExpression on every API invocation. This means each user request from each user session will create these so we will end up with a large number of duplicate objects hurting both transient and live memory Expressions are driven by the cached Node so they itself can be cached. We can use the same caching mechanism as for Node in ExpressionBuilder and create two more caches for Value and method expressions

glassfishrobot commented 6 years ago
glassfishrobot commented 13 years ago

@glassfishrobot Commented Reported by smalesev

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA UEL-24