|
From: | Dmitry Gutov |
Subject: | Re: Change in vc-git ls-files-unknown makes emacs hang |
Date: | Fri, 20 Dec 2019 16:13:59 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 20.12.2019 12:52, Filipp Gunbin wrote:
Filipp, please produce a backtrace during the freeze, either by using SIGUSR2, as Stefan suggested, or by attaching a debugger, and post the backtrace.Hi, please find the trace in the attach (it's large).
Thank you. It doesn't exactly answer my question about desktop-read (did you really have an old VC-Dir buffer in that saved session?), but it shows one bottleneck. One that is even prominently decorated with an old comment saying "this is VERY inefficient". :-)
Here's a patch you can try. It should help to an extent. And if it's the main bottleneck, we can optimize further, e.g. by eliminating the expand-file-name calls.
But if in the end you should see one very long VC-Dir buffer, which can be a usability problem on its own.
vc-dir-update-faster.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |