forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request envoyproxy#133 from vgbhfive/zh
vgbh translate upgrade
- Loading branch information
Showing
2 changed files
with
62 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
docs/root/intro/arch_overview/other_features/compression/libraries.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
.. _arch_overview_compression_libraries: | ||
|
||
Compression Libraries | ||
===================== | ||
压缩库 | ||
====== | ||
|
||
Underlying implementation | ||
基础实现 | ||
------------------------- | ||
|
||
Currently Envoy uses `zlib <http://zlib.net>`_ as a compression library. | ||
目前 Envoy 在使用 `zlib <http://zlib.net>`_ 作为压缩库。 | ||
|
||
.. note:: | ||
|
||
`zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ is a fork that hosts several 3rd-party | ||
contributions containing new optimizations. Those optimizations are considered useful for | ||
`improving compression performance <https://github.com/envoyproxy/envoy/issues/8448#issuecomment-667152013>`_. | ||
Envoy can be built to use `zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ instead of regular | ||
`zlib <http://zlib.net>`_ by using ``--define zlib=ng`` Bazel option. The relevant build options | ||
used to build `zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ can be evaluated in :repo:`here | ||
<bazel/foreign_cc/BUILD>`. Currently, this option is only available on Linux. | ||
`zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ 是一个存在多个包含最新优化的第三方贡献 Fork 库。 | ||
这其中的很多优化对于 `提高压缩性能 <https://github.com/envoyproxy/envoy/issues/8448#issuecomment-667152013>`_ 有很大的用处。 | ||
比如 Envoy 可以通过使用 --define zlib=ngbazel 选项,来构建 `zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ 代替之前的 `zlib <http://zlib.net>`_ 。 | ||
用于构建 `zlib-ng <https://github.com/zlib-ng/zlib-ng>`_ 的相关参数选项,可以在 :repo:`这里 <bazel/foreign_cc/BUILD>` 找到。 | ||
但是,这些参数选项目前只能在 Linux 上使用。 |