#2081·capistrano

Improve performance when linking shared files and directories

Author: eloyespCreated Mar 29, 2021Updated May 2, 2023

I've noticed that linking directories and files does take a lot of time because it is made one by one and with multiple checks. I would like to work on that by running a single command on the destination (joined with &&).

Mi idea would be to add an execute_multiple to sshkit and use it to run a simplified version that requires no test:

ruby
execute_multiple :ln, "-sfb", source, target

That should make that step run much faster and should be functionally equivalent.

I wanted to know your opinion about this before I start coding.

Regards.