You are here: PSPad forum > English discussion forum > Re: PSPad 4.5.8 - very slow Replace

Re: PSPad 4.5.8 - very slow Replace

#1 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 smoking smiley)
15.000.000 string = extreme speed replace

It is possible to increase the speed of the REPLACE?

Options: Reply | Quote | Up ^


#2 Re: PSPad 4.5.8 - very slow Replace

Posted by: pspad | Date: 2014-08-22 14:50 | IP: IP Logged

Do you use really the latest build?

Options: Reply | Quote | Up ^


#3 Re: PSPad 4.5.8 - very slow Replace

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

Options: Reply | Quote | Up ^


#4 Re: PSPad 4.5.8 - very slow Replace

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)

image

Edited 1 time(s). Last edit at 2014-08-26 18:10 by maki.

Options: Reply | Quote | Up ^


#5 Re: PSPad 4.5.8 - very slow Replace

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.

Options: Reply | Quote | Up ^


#6 Re: PSPad 4.5.8 - very slow Replace

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 !!!!! yawning smiley angry smiley
Undo - NOT POSSIBLE

Edited 6 time(s). Last edit at 2014-08-26 19:04 by maki.

Options: Reply | Quote | Up ^


#7 Re: PSPad 4.5.8 - very slow Replace

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.

Options: Reply | Quote | Up ^


#8 Re: PSPad 4.5.8 - very slow Replace

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

tongue sticking out smiley

Edited 3 time(s). Last edit at 2014-08-26 19:40 by maki.

Options: Reply | Quote | Up ^






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