You are here: PSPad forum > English discussion forum > Re: PSPad 4.5.8 - very slow Replace
Posted by: maki | Date: 2014-08-22 09:33 | IP: IP Logged
PSPad 4.5.8 - very slow Replace
PSpad (free :D)
5000.000 string - Replace takes tens of minutes!!
COMPARE
EmEditor 64-bit (not free )
15.000.000 string = extreme speed replace
It is possible to increase the speed of the REPLACE?
Posted by: pspad | Date: 2014-08-22 14:50 | IP: IP Logged
Do you use really the latest build?
Posted by: maki | Date: 2014-08-24 05:04 | IP: IP Logged
I'm using version
4.5.8 (2485)
2014-06-23
During Replace - automatically scrolls the list - but it takes a very long time
Posted by: maki | Date: 2014-08-26 18:08 | IP: IP Logged
All other text editors quickly be replaced name.
PSPad action much slower and load all the time ~25% CPU (Running+No Response)
Edited 1 time(s). Last edit at 2014-08-26 18:10 by maki.
Posted by: pspad | Date: 2014-08-26 18:24 | IP: IP Logged
Does all other editors UNDO for each replace?
There are 2 possible way how to do it. PSpad make undo steps for each replace. It means if you will replace 3 occurrences in 1MB file, it will consume 3 undo steps.
Second way is put whole file into undo buffer and make fast replace. Replace will be fast but you will quickly consume all available memory with several replaces.
I tested 500kB file with 14000 lines. Replace all "a" for "b" takes several seconds (about 21000 occurrences).
I will try to improve speed.
Posted by: maki | Date: 2014-08-26 19:01 | IP: IP Logged
Test: 20523621 lines
replace "a" TO "b"
Notepad 2-mod - 47 second
Undo - possible (10 second)
PSPad 4.5.8 - 14 minutes+20 second !!!!!
Undo - NOT POSSIBLE
Edited 6 time(s). Last edit at 2014-08-26 19:04 by maki.
Posted by: pspad | Date: 2014-08-26 19:20 | IP: IP Logged
It means if you need to replace millions of lines, you should use another tool.
I just looked into editor component code and without full rewriting of the search/replace engine isn't possible to increase speed significantly. There is lot of actions what are made for each replace step.
I will try to make special replace for replace mode without replace prompts.
Posted by: maki | Date: 2014-08-26 19:37 | IP: IP Logged
220,000 lines = Only size 5,6 MB (.TXT file)
5,6 MB = small ??? or Large File?
PSPad - ~2000 MB? max
Edited 3 time(s). Last edit at 2014-08-26 19:40 by maki.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR