Community
Participate
Working Groups
I used "Replace All" on the attached file. It was very slow (relative to something like Word). You can actually watch the scrollbar thumb go down through the file.
Created attachment 1106 [details] Big Java file
Which build?
Please try on 20020529. There have been performance improvements in text.
Tested in 20020529 Integration build. - it's acceptably fast if what you're replacing has no errors (7 seconds for 700 replaces) - it's still slow if what you're replacing has errors (14 seconds for 700 replaces - use a class called "Junk" instead of "Date" in the example to see what I mean). It looks as if syntax colouring / error warnings aren't turned off when you press "Replace All".
As a meaningless basis for comparison, Word (with grammar checking enabled) takes less than a second to make all the replacements.
Kai, might want to look at this as part of the performance work. There might be other cases that are affected by there being many errors, e.g. format.
Build F2 exhibits a much better performance.
In F2, I tried the following: - new file Large.txt - add line: This is a large file. - duplicate the text 13 times to create 8192 lines (select all, copy, paste, paste) - save and close - rename to Large.java file - add at the beginning: public class Large { public static void main(String[] args) { (did not add closing braces) - Replace 'This is a large file.' with ' System.out.println("This is a large file.");' - It took about 15 minutes to come back. Meanwhile the UI was blocked. I was trying to create a large file to test showing a busy cursor when opening a file. The file before the replace was only 184K. Please consider for F3.
Tried saving the file after the replace came back. Had to kill it after 25 minutes.
Reviewed by Erich.
In F3, Replace All for this case is acceptably fast. However, Save still takes forever. I killed it after 10 minutes. Filed bug 20112 for this.