accumulating projects in kate lead to excessive kate startup time due to git

Milian Wolff mail at milianw.de
Sun Jun 19 19:57:49 BST 2022


On Samstag, 18. Juni 2022 14:15:42 CEST Milian Wolff wrote:
> Hey all,
> 
> Kate took ~4s to show its main window on my beefy workstation with lots of
> RAM, CPUs and speedy NVME disks. I found this quite odd and wondered about
> the reason so I sat down and profiled it. Perf shows a lot of external git
> processes running sequentially, which I could also replicate with strace:

<snip>

> b) Can we query the git status in parallel for all projects, instead of
> serially? My machine has 12 cores and 24 threads, and the NVME disk and ram
> should also allow this.

I dug a bit deeper, and this is starting to look extremely odd to me. You can 
see a perfparser log for kate startup with three project, which already takes 
~1s or so:


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20220619/f041fd00/attachment.sig>


More information about the KWrite-Devel mailing list