OpenSearch/modules/lang-painless
Przemko Robakowski 8cf47aca7e
[7.x] Improve Painless compilation performance for nested conditionals (#52056) (#52074)
* Improve Painless compilation performance for nested conditionals (#52056)

This PR changes how conditional expression is handled in `PainlessParser`
in a way that avoids the need for backtracking, which led to exponential
compilation times in case of nested conditionals.

The test was added ensures that we can compile deeply nested conditionals.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Fix Map.of in Java8

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-07 21:13:25 +01:00
..
licenses Painless: Upgrade ASM to 7.2 (#49263) 2019-11-20 07:09:47 -08:00
spi Scripting: Cache script results if deterministic (#50106) (#50329) 2019-12-18 13:00:42 -07:00
src [7.x] Improve Painless compilation performance for nested conditionals (#52056) (#52074) 2020-02-07 21:13:25 +01:00
build.gradle Painless: Upgrade ASM to 7.2 (#49263) 2019-11-20 07:09:47 -08:00