Speed up Script Engine initialization - #21463
Conversation
PR Reviewer Guide 🔍(Review updated until commit 340db17)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 340db17 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit c651fa8
Suggestions up to commit 08f465b
|
Use isBlank to avoid regex replacement for empty or whitespace-only annotation check. Signed-off-by: tim <7452348+timlueg@users.noreply.github.com>
Signed-off-by: tim <7452348+timlueg@users.noreply.github.com>
Signed-off-by: tim <7452348+timlueg@users.noreply.github.com>
08f465b to
c651fa8
Compare
|
Persistent review updated to latest commit c651fa8 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21463 +/- ##
============================================
+ Coverage 73.34% 73.49% +0.15%
- Complexity 74353 74481 +128
============================================
Files 5967 5967
Lines 338227 338231 +4
Branches 48754 48753 -1
============================================
+ Hits 248061 248586 +525
+ Misses 70399 69825 -574
- Partials 19767 19820 +53 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@timlueg this is great! Thank you for looking into this. We've run into issues with bootstrap time on the CI checks of the security repo and this looks like it will help. |
Signed-off-by: tim <7452348+timlueg@users.noreply.github.com>
|
Persistent review updated to latest commit 340db17 |
|
❌ Gradle check result for 340db17: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
* compile whitespace pattern only once. Use isBlank to avoid regex replacement for empty or whitespace-only annotation check. Signed-off-by: tim <7452348+timlueg@users.noreply.github.com>
Description
Small improvements to Painless Script Engine initialization to reduce OpenSearch startup time.
PainlessLookupinstances for identical allowlist sequencesImprovement: ~197 ms, about 9.8%.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.