rsync 3.02008年03月06日 20時31分18秒

rsync がバージョン 3.0 を発表した。release NEWS を読むとかなりの量の変更がある。

その中で、真っ先に目に付いたのが、この機能強化。


    - A new incremental-recursion algorithm is now used when rsync is talking
      to another 3.x version.  This starts the transfer going more quickly
      (before all the files have been found), and requires much less memory.
      See the --recursive option in the manpage for some restrictions.

差分更新の時に、転送元と転送先を同時に走査し、すぐに差分の転送を始める。

以前のバージョンの rsync では、転送元を走査し終わった後に、転送先を走査していた。そのため、特に異なったデバイス間での転送に無駄が多かった。ファイルの数が多く時間が掛かるため、転送先で find を走らせて inode の先読みをやっていた。

この問題が解消され見てすぐに判る程、性能が改善された。特にファイルの数が多いと顕著だ。