Attached are two files:
1.) Text file to reproduce the current really slow search&replace all functionality
2.) The first performance patch, that improves the situation a bit and makes the search complete in more acceptable time
To reproduce the behaviour, search for "," and replace with ", " (note the extra space).
A nice bug was the value of the property "buffer.elasticTabstops=false " (spot the extra space) which resulted in a unexpected behaviour in JEditBuffer.getBooleanProperty(), and which is called quite often for the search&replace all case for the "elasticTabstops" property.
Several other optimisations that I found in the VisualVM profiler are included.
Log in to post a comment.