Bug 479756

Summary: Konsole takes a long time to start with large .ssh/config
Product: [Applications] konsole Reporter: Vitalii <7a2020>
Component: pluginsAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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