Issue 2560 second repo cloning slower than first one with darcs 2.12.5

Title second repo cloning slower than first one with darcs 2.12.5
Priority Status needs-reproduction
Milestone Resolved in
Superseder Nosy List gh
Assigned To

Created on 2017-11-08.14:33:21 by gh, last changed 2020-06-20.11:07:59 by bfrk.

File name Uploaded Type Edit Remove
patches-cloning gh, 2017-11-08.14:33:16 application/octet-stream
msg19800 (view) Author: gh Date: 2017-11-08.14:33:15
I'm on a freshly installed Ubuntu 17.10, using Darcs 2.12.5 fron the
ubuntu packages, and I did a first clone of http:://darcs.net which went
as expected. Now the second clone (or the reviewed repo) is lasting much
more time at the patches copying step, which really makes the cache
system seem pointless.

Attached is the end of the output of strace.
msg19802 (view) Author: bfrk Date: 2017-11-08.22:48:34
Have you noticed all the unlink calls, e.g.

= -1 ENOENT (No such file or directory)

They are the vast majority of the file accesses and they all fail. I
would guess that this is what is slowing things down, but I have no idea
why darcs wants to delete these files.
Date User Action Args
2017-11-08 14:33:21ghcreate
2017-11-08 22:48:36bfrksetmessages: + msg19802
2020-06-20 11:07:59bfrksetstatus: unknown -> needs-reproduction