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.
@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?
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.