SPEL expression parser takes more cpu after upgrade from 6.2.8 to 6.2.9,
There is huge affect in performance and we use spel in multi threaded env.
A benchmark that was captured during testing the same code with different spel versions
00:08:33.234019 time with 6.2.9 00:02:36.568206 time with 6.2.8
Any suggestions to be considered to make 6.2.9 run similar to 6.2.8.
We also tried working with 6.2.10 and 6.2.11, both the version exhibit the same issue with performance.
Tried some of the version between 5.3.39 and 6.2.8 which are 6.2.0 and 6.2.5.
6.2.0 and 6.2.5 provided the best performance same as 6.2.8.
The major difference we are seeing with spel is while moving from 6.2.8 to 6.2.9. I have gone through the change logs but could not get the root cause that could be possible for higher cpu time.
Background: We run our application on Quarkus and use spel library for expresssion parsing. We had a vulnerability on 5.3.39 that is when we moved to the latest library that did not have any issues which is 6.2.11.
While backtracking the version we found the conflicting issue of performance happened between 6.2.8 to 6.2.9.
Looking forward for your response.
Thank You
Comment From: bhargavmavram
Additional Observation from VM Sampler 6.2.8 performance for max cpu time consumed method
6.2.11 performance for max cpu time consumed method
Assuming the commit that started to cause this issue: https://github.com/spring-projects/spring-framework/commit/ba6166a02d8bc2a7a9e1b57c7431fee4ca3854b1