andsens / homeshick

git dotfiles synchronizer written in bash
MIT License
2.11k stars 146 forks source link

Speed up refresh operation by reducing exec calls #181

Closed kruton closed 5 years ago

kruton commented 6 years ago

Replace common shell utilities with built-in bash functions to speed up execution. Also replace call to "date" with T_START that is set when homeshick first starts.

This speeds up a no-op "homeshick refresh" with 10 castles from 290ms to 200ms (~31% improvement) on my machine by reducing calls to exec.

andsens commented 6 years ago

@kruton, may I ask why you require this speedup in refresh? Is it because you have many castles or is it because you are doing this for many users at once?

andsens commented 5 years ago

:-)
Closing.