TRAMP remote file operations are slow by default; basic settings like disabling locks and using scp directly help.
Increase tramp-copy-size-limit (e.g. to 1 MB) so large files use faster out-of-band copying instead of inline base64.
Enable direct asynchronous processes in TRAMP 2.7 to speed up packages like Magit and Git-Gutter.
Restore SSH connection sharing after compile to avoid repeated password prompts and speed connections.
Use Emacs profiler and debug-on-entry to identify and remove hooks or functions causing hidden TRAMP calls.
Optimize Magit over TRAMP by using dispatch commands, running shell commands directly, and disabling auto-refresh/diffs.
Cache frequent remote calls (project-current, magit-toplevel, vc-git-root) with an advice-based memoization to reduce repeated TRAMP lookups.
Disable LSP and other heavy features on remote files or use lighter alternatives to avoid extra TRAMP overhead
Get notified when new stories are published for "🇺🇸 Hacker News English"