[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATH] * trampvar.el.in (tramp-repository-branch, tramp-repository-versi
From: |
Lin Sun |
Subject: |
[PATH] * trampvar.el.in (tramp-repository-branch, tramp-repository-version): Avoid to call git for initializing the variables |
Date: |
Sat, 27 Jul 2024 04:47:53 +0000 |
Hi,
The tramp is extremely slow on windows, and I found that tramp in
emacs will call git 4 times on startup.
In the emacs-release package, the `tramp-loaddefs.el` has the copy of
tramp-repository-branch, tramp-repository-version (these two variables
are marked as autoload), it will call git to initialize their values;
and when requiring the `trampvar.el`, these two variables will be
initialize with calling git again. That will call git 4 times.
This patch tries to avoid these calls, improving the performance a lot.
Please help review the patch. Thanks.
Lin
0001-trampvar.el.in-tramp-repository-branch-tramp-reposit.patch
Description: Text Data
- [PATH] * trampvar.el.in (tramp-repository-branch, tramp-repository-version): Avoid to call git for initializing the variables,
Lin Sun <=