OpenSearch/x-pack
Marios Trivyzas 5f8442d1f4
SQL: Improve performances of LTRIM/RTRIM (#57603)
Change custom stripping leading and trailing whitespaces implementation
to substantially improves performance:
```
Benchmark                         Mode  Cnt      Score     Error  Units
StringTrim.testWithStringBuilder  avgt   25  82547.575 ±  66.244  ns/op (existing impl)
StringTrim.testWithSubstring      avgt   25   1398.762 ± 101.152  ns/op (new impl)
StringTrim.testWithJavaStrip      avgt   25   1186.120 ±  10.374  ns/op (for reference)
```
Java's string stripLeading()/stripTrailing() not available to all supported JDKs.

Enhanced LENGTH unit tests and compine a couple of LTRIM/RTRIM integ
tests.

Relates to: #57594
(partially cherry picked from commit ee7868d68733f195dc46926a7eab3d9dd7033ef4)

Co-authored-by: Bogdan Pintea <bogdan.pintea@elastic.co>
2020-06-04 13:43:49 +02:00
..
dev-tools
docs [DOCS] Fix formatting of create API key API docs (#57138) 2020-05-27 08:34:51 -04:00
license-tools Support "enterprise" license types (#49474) 2019-12-12 14:37:44 +11:00
plugin SQL: Improve performances of LTRIM/RTRIM (#57603) 2020-06-04 13:43:49 +02:00
qa Serialize Outbound Messages on IO Threads (#56961) (#57080) 2020-06-02 16:15:18 +02:00
snapshot-tool Use 3rd party task to run integration tests on external service (#56588) 2020-06-02 11:26:58 +02:00
test Upgrade feature aware check usage of ASM to 7.3.1 (#54577) 2020-04-18 10:49:57 -04:00
transport-client Always use archive base name as the pom artifact id (#56447) (#56467) 2020-05-08 16:11:19 -07:00
NOTICE.txt
README.md
build.gradle [7.x] Update opensaml dependency (#44972) (#49512) 2019-11-29 00:17:16 +02:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.