You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2016/09/08 17:39:46 UTC
svn commit: r1759872 - in /jmeter/trunk:
src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
xdocs/changes.xml
Author: fschumacher
Date: Thu Sep 8 17:39:46 2016
New Revision: 1759872
URL: http://svn.apache.org/viewvc?rev=1759872&view=rev
Log:
Reduce memory allocations when looking for prefixes in strings.
Based on patch by Benoit Wiart (b.wiart at ubik-ingenierie.com).
This closes #228 on github.
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
jmeter/trunk/xdocs/changes.xml
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1759872&r1=1759871&r2=1759872&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java Thu Sep 8 17:39:46 2016
@@ -1363,7 +1363,7 @@ public abstract class HTTPSamplerBase ex
* @return escaped url
*/
private String escapeIllegalURLCharacters(String url) {
- if (url == null || url.toLowerCase().startsWith("file:")) {
+ if (url == null || StringUtils.startsWithIgnoreCase(url, "file:")) {
return url;
}
try {
Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1759872&r1=1759871&r2=1759872&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Thu Sep 8 17:39:46 2016
@@ -81,7 +81,7 @@ Summary
<h3>HTTP Samplers and Test Script Recorder</h3>
<ul>
- <li><bug>59882</bug>Reduce memory allocations for better throughput. Contributed by Benoit Wiart (b.wiart at ubik-ingenierie.com) through <pr>217</pr></li>
+ <li><bug>59882</bug>Reduce memory allocations for better throughput. Contributed by Benoit Wiart (b.wiart at ubik-ingenierie.com) through <pr>217</pr> and <pr>228</pr></li>
<li><bug>59885</bug>Optimize css parsing for embedded resources download by introducing a cache. Contributed by Benoit Wiart (b.wiart at ubik-ingenierie.com) through <pr>219</pr></li>
</ul>