# Abount compress algorithms

**URL:** https://discuss.elastic.co/t/abount-compress-algorithms/178345
**Category:** Elasticsearch
**Created:** [April 25, 2019, 2:34am UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345 "2019-04-25T02:34:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Arizon](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arizon](https://discuss.elastic.co/u/Arizon)
#### Post date: [April 25, 2019, 2:34am UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345/1 "2019-04-25T02:34:37Z")

</div>

Hello，

as i know, elasticsearch provide two compression algorithms, lz4 and deflate. The former focused on compression and decompression speed. And the latter means more space saving.

Recently, I have done a test. I replace the default algorithms(lz4 fast) with [lz4-java](https://github.com/lz4/lz4-java) and I make some unique optimization since i run elasticsearch on arm server. I do some benchmarking with rally and I find its performance increased by 16%. It's amazing!

So, If we modify elasticsearch‘s code to let him support third-party algorithms such as the above(lz4-java, or other compression algorithms), will the community consider it? Or Does the community have plan to let elasticsearch support third-party algorithms not only lz4 ,deflate?

Thanks!

---

<div class="post-metadata">

### Author: ![Arizon](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arizon](https://discuss.elastic.co/u/Arizon)
#### Post date: [April 25, 2019, 6:37am UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345/2 "2019-04-25T06:37:24Z")

</div>

I mean it supports native compression/decompression algorithms

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [April 25, 2019, 6:39am UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345/3 "2019-04-25T06:39:21Z")

</div>

Sounds interesting @Arizon, would you open a GitHub issue or even a PR with your changes so we can consider them in detail?

---

<div class="post-metadata">

### Author: ![Arizon](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arizon](https://discuss.elastic.co/u/Arizon)
#### Post date: [April 25, 2019, 12:37pm UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345/4 "2019-04-25T12:37:12Z")

</div>

OK，i will

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 23, 2019, 12:37pm UTC](https://discuss.elastic.co/t/abount-compress-algorithms/178345/5 "2019-05-23T12:37:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
