helm-backup icon indicating copy to clipboard operation
helm-backup copied to clipboard

Improve speed or change to asynchronous git commands

Open SterlingHooten opened this issue 3 years ago • 1 comments

First of all, thanks for the package, it's very useful! I've noticed that on my system having helm-backup-versioning in the after-save-hook can add around .3 seconds as benchmarked with (benchmark 1 '(helm-backup--version-file (buffer-file-name))). This is a dramatic slowdown and is especially noticeable when executing commands that need to finish saving before moving on (e.g., closing out an Org mode capture template).

Do other users also have this slowdown?

I think the bulk of the time is spent waiting for git commands to run, could this be done asynchronously to prevent blocking?

SterlingHooten avatar Jan 17 '23 17:01 SterlingHooten

Hi, so sorry to answer so late to your issue.

Maybe it could be done asynchronously, also maybe using plumbing commands could help.

I have to check that, it's a long time that haven't been there.

antham avatar Feb 08 '23 11:02 antham