Bug 479756 - Konsole takes a long time to start with large .ssh/config
Summary: Konsole takes a long time to start with large .ssh/config
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: plugins (show other bugs)
Version: 23.08.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-13 18:21 UTC by Vitalii
Modified: 2024-12-01 15:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitalii 2024-01-13 18:21:27 UTC
SUMMARY
***
My .ssh/config is over 23000 lines long. About half a year ago (possibly earlier), after the next update, launching Konsole began to take more than 10 seconds. I recently took the time to find out the reason. The reason turned out to be the SSH Manager plugin. Every time you start Konsole, it reads .ssh/config and generates .config/konsolesshconfig and it seems to do this in a far from optimal way.
***


STEPS TO REPRODUCE
1.  Generate large .ssh/config: for i in $(seq 1 10000); do echo -e "Host test-$i\nHostname 127.0.0.1\n"; done > ~/.ssh/config
2.  Launch Konsole

OBSERVED RESULT
The delay from the moment the Konsole starts until the window appears takes more than 10 seconds.

EXPECTED RESULT
Konsole should start in less than a second.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kubuntu 23.10
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Processors: 16 × 13th Gen Intel® Core™ i7-1360P
Memory: 31.0 GiB of RAM
Manufacturer: LENOVO
System version: ThinkPad X1 Carbon Gen 11

ADDITIONAL INFORMATION