jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1775351 - in /jmeter/trunk: src/core/org/apache/jmeter/gui/action/RegexpSearcher.java xdocs/changes.xml
Date Tue, 20 Dec 2016 20:49:51 GMT
Author: pmouawad
Date: Tue Dec 20 20:49:51 2016
New Revision: 1775351

URL: http://svn.apache.org/viewvc?rev=1775351&view=rev
Log:
Bug 60501 - Search Feature : Performance issue when regexp is checked
Bugzilla Id: 60501

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/RegexpSearcher.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/RegexpSearcher.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/RegexpSearcher.java?rev=1775351&r1=1775350&r2=1775351&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/RegexpSearcher.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/RegexpSearcher.java Tue Dec 20 20:49:51
2016
@@ -40,11 +40,10 @@ public class RegexpSearcher implements S
     public RegexpSearcher(boolean caseSensitive, String regexp) {
         super();
         this.caseSensitive = caseSensitive;
-        String newRegexp = ".*"+regexp+".*";
         if(caseSensitive) {
-            pattern = Pattern.compile(newRegexp);
+            pattern = Pattern.compile(regexp);
         } else {
-            pattern = Pattern.compile(newRegexp, Pattern.CASE_INSENSITIVE);
+            pattern = Pattern.compile(regexp, Pattern.CASE_INSENSITIVE);
         }
     }
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1775351&r1=1775350&r2=1775351&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Tue Dec 20 20:49:51 2016
@@ -188,6 +188,7 @@ Fill in some detail.
     <li><bug>60442</bug>Fix a typo in <code>build.xml</code>
(gavin at 16degrees.com.au)</li>
     <li><bug>60449</bug>JMeter Tree : Annoying behaviour when node name
is empty</li>
     <li><bug>60494</bug>Add sonar analysis task to build</li>
+    <li><bug>60501</bug>Search Feature : Performance issue when regexp
is checked</li>
 </ul>
 
  <!--  =================== Thanks =================== -->



Mime
View raw message