OpenSearch/plugins/repository-gcs/src
Armin Braun 74e3694234
Optimize GCS Repo Uploads (#51596) (#51618)
For small uploads (that can still be up to 5MB!) we needlessly
reading the `InputStream` into a BAOS which entailed allocating
the `byte[]` for the stream contents twice (because to `toByteArray` on the BAOS copies).

Also, for resumeable uploads we were needlessly wrapping the output channel and running each individual write in its own privileged context when we could just wrap the whole upload in a single privileged context.

Relates #51593
2020-01-29 16:07:30 +01:00
..
main Optimize GCS Repo Uploads (#51596) (#51618) 2020-01-29 16:07:30 +01:00
test Optimize GCS Mock (#51593) (#51594) 2020-01-29 11:06:05 +01:00