[svnbook] r5826 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Fri Nov 16 07:16:17 CST 2018


Revision: 5826
          http://sourceforge.net/p/svnbook/source/5826
Author:   wuzhouhui
Date:     2018-11-16 13:16:12 +0000 (Fri, 16 Nov 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-11-11 02:25:14 UTC (rev 5825)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-11-16 13:16:12 UTC (rev 5826)
@@ -8367,8 +8367,12 @@
 
     <!-- =============================================================== -->
     <sect2 id="svn.serverconfig.optimization.compression">
+      <!--
       <title>Network Compression of Data</title>
+      -->
+      <title>网络数据压缩</title>
 
+      <!--
       <para>Compressing the data transmitted across the wire can
         greatly reduce the size of those network transmissions, but
         comes at the cost of server (and client) CPU cycles.
@@ -8378,7 +8382,7 @@
         tune just how hard your server will work to compress the data
         it sends across the wire.  To assist with this fine tuning
         process, Subversion 1.7 offers
-        the <option>--compression</option> (<option>-c</option>)
+        the <option>- -compression</option> (<option>-c</option>)
         option to <command>svnserve</command> and
         the <literal>SVNCompressionLevel</literal> directive
         for <command>mod_dav_svn</command>.  Both accept a value which
@@ -8385,7 +8389,18 @@
         is an integer between 0 and 9 (inclusive), where 9 offers the
         best compression of wire data, and 0 disables compression
         altogether.</para>
+      -->
+      <para>对数据进行压缩后再传输, 可以大大减少网络流量, 但这也会造成服务
+        器端 (和客户端) 消耗更多的 CPU 资源. 根据服务器的 CPU 能力, 客户端
+        访问服务器的典型模式, 以及客户端与服务器之间的网络带宽, 管理员可能会
+        想调整服务器应该尽多大的努力来压缩数据. 为了帮助管理员进行这种调整,
+        Subversion 1.7 为 <command>svnserve</command> 提供了选项
+        <option>--compression</option> (<option>-c</option>), 为
+        <command>mod_dav_svn</command> 提供了配置指令
+        <literal>SVNCompressionLevel</literal>, 它们都接受一个 0 到 9 (含 9)
+        之间的整数, 9 表示尽最大努力压缩数据, 0 则禁止压缩.</para>
 
+      <!--
       <para>For example, on a local area network (LAN) with 1-Gigabit
         connections, it might not make sense to have the server
         compress its network transmissions (which also forces the
@@ -8395,6 +8410,13 @@
         accessed primarily by clients with low-bandwidth connections
         would be doing those clients a favor by minimizing the overall
         size of its network communications.</para>
+      -->
+      <para>比如说, 在一个 1 G 带宽的本地局域网 (LAN) 内, 服务器就没必要对
+        待传输的数据进行压缩 (如果服务器对数据进行了压缩, 客户端在接收到数据
+        后还要解压), 因为网速已经足够快了, 即使对待传输的数据进行压缩, 用户
+        也不会感觉到明显的性能提升. 另一方面, 如果访问服务器的大多数客户端,
+        其网络带宽都比较低, 那么对待传输的数据进行压缩可以大大改善用户检验.
+      </para>
 
     </sect2>
 




More information about the svnbook-dev mailing list