public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
* redo-ood taking much longer to return in a copy of a project, compared with the original
@ 2021-11-19 20:23 Karolis K
  2021-11-19 20:41 ` Sergey Matveev
  0 siblings, 1 reply; 5+ messages in thread
From: Karolis K @ 2021-11-19 20:23 UTC (permalink / raw)
  To: goredo-devel

Hello,

I have a relatively large project handled by redo (not many dependencies, but the file sizes can be in gigabytes).
Recently I wanted to test some things out and so I made a hard copy of this project (cp -r projectdir projectdir2).

After doing this I noticed that the redo-ood, when started in projectdir2 took around 10x (maybe more) times longer to return compared with the original projectdir.
I also confirmed the same behaviour on a different project, on a different machine (both running CENTOS).

Is this known and expected?
My understanding was that since .redo dependencies are stored under each dir individually the computations shouldn’t depend on where the root is located. But somehow it does.

Any insights are very appreciated.
Kind regards,
Karolis Koncevičius

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: redo-ood taking much longer to return in a copy of a project, compared with the original
@ 2021-11-20 19:18 Karolis K
  2021-11-21 19:00 ` Sergey Matveev
  0 siblings, 1 reply; 5+ messages in thread
From: Karolis K @ 2021-11-20 19:18 UTC (permalink / raw)
  To: goredo-devel

Hello and thank you for such a prompt reply!

> And basically nothing can be done, as I can see. The only guaranteed
> information we can trust is file's contents, that also can be trusted
> through long-enough collision resistant hash function.

I see what you mean here. But I wonder - maybe it’s possible to somehow have this slow check be performed only once, and then updated?
For example, and I assume here, that once the hash is checked and found correct we can maybe update the stored ctime to match that of the file?

It’s just hard for me to accept that after copying the project (or even renaming it with mv) it will be forever doomed to have a slow redo-ood return.
Seems like this would negate a part of advantage that comes with having .redo/ info being stored within each directory separately.

Sorry in advance if my suggestion doesn’t make sense.
Warm regards,
Karolis K.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-21 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 20:23 redo-ood taking much longer to return in a copy of a project, compared with the original Karolis K
2021-11-19 20:41 ` Sergey Matveev
2021-11-19 20:45   ` Sergey Matveev
2021-11-20 19:18 Karolis K
2021-11-21 19:00 ` Sergey Matveev