SUMMARY STEPS TO REPRODUCE 1. download this dictionary https://www.sogou.com/labs/resource/w.php or others dictionary 2. try to research " " to replace to "-" 3. can't replace more than 300,000 characters and running out of memory OBSERVED RESULT Cannot replace characters more than 300,000 if I do memory will overflow EXPECTED RESULT work like kwrite do this SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.70.0 Qt Version: 5.15.0 Kernel Version: 5.6.16-1-MANJARO OS Type: 64-bit Processors: 4 × Intel® Core™ i3-9100F CPU @ 3.60GHz Memory: 7.7 GiB ADDITIONAL INFORMATION kwrite can do this and not running out of memory
Confirmed on git master, kwrite takes about 5 seconds to process all 300,000+ replacements and uses minimal RAM Running on kate I gave up after about 2 minutes and it was still consuming RAM, 8GB and counting.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/137
This has been fixed with https://invent.kde.org/utilities/kate/-/merge_requests/142