performance - CVS 性能

标签 performance cvs

我在 CVS 存储库上有大量项目,我正在寻找提高其性能的方法。
CVS 压缩有帮助吗?那么加密呢,它会降低速度吗?

谢谢!

最佳答案

通过重复使用,CVS 会随着时间的推移而变慢。

  • 当您 check out 整个项目时,服务器将需要创建每个目录(即使您已经删除了它 - check out 后清除目录会隐藏它)。
  • 当您 checkout 时,每个文件都会被打开和检查,如果您有成百上千的文件,这可能会非常慢。
  • 如果您不尝试取出主干的 HEAD,事情会变得更糟,因为在将内容发送到客户端之前需要重新构建内容。

  • 如果在所有这些之后,您想要提高在服务器和客户端之间移动数据的性能,那么您可以(取决于您的内容类型)使用 -z 选项进行压缩。我发现 -z6 是最好的,但根据文件的性质,您可能需要更多/更少的压缩。

    -z GZIPLEVEL

    Sets the compression level on communications with the server. The argument GZIPLEVEL must be a number from 1 to 9. Level 1 is minimal compression (very fast, but doesn't compress much); Level 9 is highest compression (uses a lot of CPU time, but sure does squeeze the data). Level 9 is only useful on very slow network connections. Most people find levels between 3 and 5 to be most beneficial.

    A space between -z and its argument is optional.

    关于performance - CVS 性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1033162/

    相关文章:

    android - 以比在 Android 中使用 java.util.zip 更快的方式解压缩文件

    android - 哪个性能更好 : setOnClickListener VS android:onclick ="onClick"

    javascript - EmberJS 和 Rails 4 API 的性能问题

    java - 根据 Eclipse 中的修改日期过滤导航菜单中的文件

    java - Eclipse CVS - 警告 : commitinfo line contains no format strings

    cvs - 如何在不 checkout repo 的情况下获取 cvs 提交日志

    c# - 如果与开关速度

    mysql - 简单查询需要15-30秒

    svn - 源代码管理——如果、为什么、如何开始?

    git - 如何将 cvs2git 迁移结果导入 bitbucket