Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serious slowdown when I replace a character in a not so big text file #41

Closed
acrobaticparticle opened this issue Apr 13, 2020 · 2 comments

Comments

@acrobaticparticle
Copy link

Notepad++: 7.8.5 32bit (build 2020.03.04)
Xml Tools: 3.0.3.3
OS: Win7 64bit

Symptom:
When I use the inbuilt search and replace function in Notepad++ on a simple text file (CSV) with Xml Tools installed, there is a huge delay until the app finishes the replacing compare to that case when Xml Tools is not installed. The time difference in my case (details below) is 30secs! (2=>32)

Reproduction:

  1. Download the latest 32bit notepad and install with Plugin admin (everything is default)
  2. On the plugin admin interface install the Xml Tools plugin 3.0.3.3 (Restart)
  3. Open a simple text file with some content (mine was a pipe separated csv file with ~700rows UTF8 encoded)
  4. Open the Replace popup CTRL+H and try to replace a character to another (In my case it was | => \t, pipe to tab) But the same happens when I use a => b
    I did this in on a fresh install in Virtualbox

I tested with this example below too with similar results:
https://people.sc.fsu.edu/~jburkardt/data/csv/snakes_count_1000.csv
(from here: https://people.sc.fsu.edu/~jburkardt/data/csv/csv.html)

I did not even work with an xml file, so how and why this plugin does interact with this notepad functionality?

@morbac
Copy link
Owner

morbac commented Apr 13, 2020

Hi,

Thanks for your message.

This issue has already been fixed in newer versions (see #37) and will be available through Plugin admin in incoming release. Unfortunately the Plugin admin cannot be updated faster that NPP releases.
In the meanwhile, you can get a recent version of xmltools here.

@morbac morbac closed this as completed Apr 13, 2020
@acrobaticparticle
Copy link
Author

Sorry I did not notice that this has been solved already.
The latest version is working like a charm :)
Thank you very much for your prompt help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants