Andrew Tropin schreef op do 15-07-2021 om 11:46 [+0300]: > No specific reason. Yep, spawning a new process can be expensive, but > it's not clear how much time will take the comparison itself and if it > worth it to optimize "startup time". I'm not very fluent with guile > internals and not sure if reimplementation of cmp in guile would improve > or worsen the performance, but it obviously could intoduce some bugs. I > found Xinglu's idea of the usage of well-tested cmp to be a reasonable > solution here. Sounds reasonable to me. > Also, this service is expected to be used with small amount of files and > because many of them are symlinks to the store even smaller number of > them will trigger the execution of cmp, so I find the performance > optimization to be preliminary here and propose to address the issue > when and if it appear someday. > > However, the ideas about size and inodes are good, easy to implement and > I find them potentially useful to prevent unecessary external process > spawning. The patch with those improvements are below: [...] Greetings, Maxime.