[darcs-devel] [issue2273] darcs amend: sometimes very slow due to calls to copyFileUsingCache

Mark Stosberg bugs at darcs.net
Mon Dec 10 17:48:26 UTC 2012


New submission from Mark Stosberg <mark at summersault.com>:

1. Summarise the issue (what were doing, what went wrong?)

I used "darcs amend" to add a one line change to a patch I just created. 
Perhaps was very good while selecting the changes to include and the 
patch to amend. However, performance became extemely slow after 
selecting the final "Yes".

2. What behaviour were you expecting instead?

Using "darcs amend" to add a single line to a patch just created should 
by very fast. 

3. What darcs version are you using? (Try: darcs --exact-version)

darcs 2.9.6, although darcs 2.8.0 displays the same behavior. 

4. What operating system are you running?

Ubuntu Linux 12.04 on EC2.

By using "darcs amend --verbose", I can get a little more insight into 
the slowness. 

###
Disabling progress reports...
Shall I add this change? (1/1)  [ynW...], or ? for more options: y
Reenabling progress reports.
Adding changes to pending...
...
Adjusting the context of the unrevert changes...
Removing 1 patches in removeFromUnrevertContext!

Then it rather slowly gets into a sequence of calls to 
copyFileUsingCache (why are these needed for amend-record):

I'm doing copyFileUsingCache on patches/0000000631-
b3a3c437fb66d89e171a436150fb962677a450be1e5db11b4d351072dfc065ab

After about 6 patches, it hangs for about 10 minutes before I give up 
and kill it. 

Unfortunately, the repo in question can't be shared.

----------
messages: 16387
nosy: markstos
status: unknown
title: darcs amend: sometimes very slow due to calls to copyFileUsingCache

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2273>
__________________________________


More information about the darcs-devel mailing list