简体   繁体   English

颠覆很慢

[英]Subversion very slow

I am working on a project where the branches folder contain at least 300 different branch (copy of the trunk) which is will no more be used. 我正在一个项目中,该分支文件夹包含至少300个不同的分支(主干副本),将不再使用。 Since SVN is running more and more slowly I wonder if deleting those branches will make subversion behave operate faster? 由于SVN的运行速度越来越慢,我想知道删除这些分支是否会使Subversion的运行速度更快?

Other people in my team say that since the source code will still be on the server, so it wont change anything. 我团队中的其他人说,由于源代码仍将在服务器上,因此它不会更改任何内容。 (So branch stay undeleted). (因此分支保持不变)。

But I read something on Subversion before (I dont remember where) saying that HEAD is managed a little bit different that previous version which could increase the speed of the repository. 但是我之前在Subversion上读过一些东西(我不记得在哪里),说HEAD的管理方式与以前的版本有些不同,这可以提高存储库的速度。

Which one of these hold true ? 以下哪一项是正确的?

Subversion performance is more related to the load on your server than the size of the repository. 与存储库的大小相比,Subversion的性能与服务器上的负载更为相关。 Check on disk space and CPU performance, as well as looking into the web server performance (or svnserve on Windows). 检查磁盘空间和CPU性能,以及调查Web服务器性能(或Windows上的svnserve )。

If you remove branches, there will still be a repository version that has those branches in it, so they will not be removed. 如果删除分支,那么仍然会有其中包含那些分支的存储库版本,因此不会删除它们。 The only way to actually remove content is to dump the repository ( svnadmin dump ) and then use svndumpfilter to remove the branches in question from the dumped content. 实际删除内容的唯一方法是转储存储库( svnadmin dump ),然后使用svndumpfilter从转储的内容中删除有问题的分支。 The resulting content can be loaded into a new repository without the removed content, and even the revision numbers can be updated. 可以将结果内容装入没有删除内容的新存储库中,甚至可以更新修订号。

I am not aware of the HEAD being handled differently in terms of performance. 我不知道HEAD在性能方面有不同的处理方式。 However, copies of the HEAD (or anything else) are cheap, lightweight copies, and should not affect performance. 但是,HEAD(或其他任何东西)的副本是廉价的轻量级副本,并且不会影响性能。

Can you provide any additional information on which specific operations are slowing down? 您能否提供有关哪些特定操作速度变慢的任何其他信息?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM