You are here: PSPad forum > English discussion forum > Re: Search/Replace incredible slow (V.4.5.7)
Posted by: asymmetric | Date: 2013-05-07 13:59 | IP: IP Logged
I recently started to use PsPad, which seems to
be a nice editor. But one thing stunned me:
E.g., I need to replace some words within a
50-100MB txt file (80,000-100,000 occurences),
a job that takes rather long with PsPad.
For each replacement, PsPad redraws the screen
after scrolling to the next replacement position.
I didn't find an option to remove this behavior.
Is there any possibility to stop the scrolling?
Posted by: myf | Date: 2013-05-07 14:33 | IP: IP Logged
I second that. It has been proposed few times in the past, but either was dug or is not possible. Bitter fact is also that undoing such global replacement is even slower.
Indeed, scrolling/redraw during global replacement without "prompt for each replace" is nonsense, as well as making history entry for every single replacement and most probably hitting the "max undo steps history limit".
To recap the proposal regarding global replacement behavior changes:
- in single step
- polluting undo history with just "before" and "after" replacement snapshots
- without chasing cursor and redrawing screen.
Regarding final cursor placement I am not sure
- Cursor should either
-- not be moved at all (I wouldn't mind, single modal dialogue wit replacements count seems sufficient info about operation).
-- or be placed according replacement direction at the end/beginning of document/selection (like the way it is now).
Posted by: pspad | Date: 2013-05-07 17:49 | IP: IP Logged
I agree, the whole Search/Replace needs to be rewritten. Include real regular expression multiline search/replace.
Posted by: pspad | Date: 2013-05-07 17:50 | IP: IP Logged
As first step I will look why the replacement without prompting sets position and redraws window.
Posted by: vbr | Date: 2013-05-07 22:14 | IP: IP Logged
pspad:As first step I will look why the replacement without prompting sets position and redraws window.
Hi, I fully support this feature (or bugfix); just for completeness - there is a similar slow-down and redrawing even in non-replacing search operations (list, copy, count occurences).
It would be nice, if these could be solved too (maybe it could even be fixed "at once").
regards,
vbr
Posted by: pspad | Date: 2013-05-09 13:33 | IP: IP Logged
It will be fixed "at once"
Redrawing diring replace/copy/... is fixed already, fix will be available in the next build.
Posted by: vbr | Date: 2013-05-09 21:17 | IP: IP Logged
pspad:It will be fixed "at once"
Redrawing diring replace/copy/... is fixed already, fix will be available in the next build.
Nice! many thanks
vbr
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