OpenSearch/x-pack/plugin
Armin Braun 32423a486d
Simplify and Speed up some Compression Usage (#60953) (#61008)
Use thread-local buffers and deflater and inflater instances to speed up
compressing and decompressing from in-memory bytes.
Not manually invoking `end()` on these should be safe since their off-heap memory
will eventually be reclaimed by the finalizer thread which should not be an issue for thread-locals
that are not instantiated at a high frequency.
This significantly reduces the amount of byte copying and object creation relative to the previous approach
which had to create a fresh temporary buffer (that was then resized multiple times during operations), copied
bytes out of that buffer to a freshly allocated `byte[]`, used 4k stream buffers needlessly when working with
bytes that are already in arrays (`writeTo` handles efficient writing to the compression logic now) etc.

Relates #57284 which should be helped by this change to some degree.
Also, I expect this change to speed up mapping/template updates a little as those make heavy use of these
code paths.
2020-08-12 11:06:23 +02:00
..
analytics Replace AggregatorTestCase#search with AggregatorTestCase#searchAndReduce (#60816) 2020-08-10 17:23:00 +02:00
async [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
async-search [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
autoscaling Autoscaling decider and decision service (#59005) (#60884) 2020-08-10 15:28:52 +02:00
ccr Increase timeout in testFollowIndexWithConcurrentMappingChanges (#60534) 2020-08-11 17:03:22 -04:00
core Simplify and Speed up some Compression Usage (#60953) (#61008) 2020-08-12 11:06:23 +02:00
data-streams Un-mute data stream REST test (#60120) (#60939) 2020-08-11 08:10:04 -05:00
deprecation Move deprecation HTTP tests to deprecation plugin (#60523) 2020-08-05 09:54:34 +01:00
enrich [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
eql [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
frozen-indices [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
graph [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
identity-provider [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
ilm Tests: don't fail if ILM executed the action already (#60916) (#60982) 2020-08-12 09:04:04 +01:00
logstash [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
mapper-constant-keyword [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
mapper-flattened [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
ml [7.x][ML] Audit force stopping data frame analytics (#60973) (#61004) 2020-08-12 07:45:26 +03:00
monitoring [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
ql [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
rollup Simplify and Speed up some Compression Usage (#60953) (#61008) 2020-08-12 11:06:23 +02:00
search-business-rules [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
searchable-snapshots Increase information on assertRecoveryStats assertion (#60960) 2020-08-11 15:30:59 +02:00
security Use the Index Access Control from the scroll search context (#60640) 2020-08-05 15:37:37 +03:00
spatial Replace AggregatorTestCase#search with AggregatorTestCase#searchAndReduce (#60816) 2020-08-10 17:23:00 +02:00
sql [7.x] Extensibility for Composite Agg #59648 (#60842) 2020-08-11 09:14:33 -04:00
src/test Even longer timeout for XPackRestIT (#60812) 2020-08-10 10:26:21 +01:00
stack Merge test runner task into RestIntegTest (7.x backport) (#60600) 2020-08-04 14:46:32 +02:00
transform Simplify and Speed up some Compression Usage (#60953) (#61008) 2020-08-12 11:06:23 +02:00
vectors [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
voting-only-node [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
watcher Simplify and Speed up some Compression Usage (#60953) (#61008) 2020-08-12 11:06:23 +02:00
wildcard [7.x] Cleanup xpack build.gradle (#60554) (#60603) 2020-08-03 13:11:43 -05:00
build.gradle Merge test runner task into RestIntegTest (7.x backport) (#60600) 2020-08-04 14:46:32 +02:00